/breezy/unstable

To get this branch, use:
bzr branch https://code.breezy-vcs.org/breezy/unstable

« back to all changes in this revision

Viewing changes to breezy/tests/test_email_message.py

  • Committer: Jelmer Vernooij
  • Date: 2017-05-24 01:39:33 UTC
  • mfrom: (3815.3776.6)
  • Revision ID: jelmer@jelmer.uk-20170524013933-ir4y4tqtrsiz2ka2
New upstream snapshot.

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
import sys
18
18
from email.Header import decode_header
19
19
 
20
 
from bzrlib import __version__ as _bzrlib_version
21
 
from bzrlib.email_message import EmailMessage
22
 
from bzrlib.errors import BzrBadParameterNotUnicode
23
 
from bzrlib.smtp_connection import SMTPConnection
24
 
from bzrlib import tests
 
20
from .. import __version__ as _breezy_version
 
21
from ..email_message import EmailMessage
 
22
from ..errors import BzrBadParameterNotUnicode
 
23
from ..smtp_connection import SMTPConnection
 
24
from .. import tests
25
25
 
26
26
EMPTY_MESSAGE = '''\
27
27
From: from@from.com
29
29
To: to@to.com
30
30
User-Agent: Bazaar (%s)
31
31
 
32
 
''' % _bzrlib_version
 
32
''' % _breezy_version
33
33
 
34
34
_SIMPLE_MESSAGE = '''\
35
35
MIME-Version: 1.0
40
40
To: to@to.com
41
41
User-Agent: Bazaar (%s)
42
42
 
43
 
%%s''' % _bzrlib_version
 
43
%%s''' % _breezy_version
44
44
 
45
45
SIMPLE_MESSAGE_ASCII = _SIMPLE_MESSAGE % ('us-ascii', '7bit', 'body')
46
46
SIMPLE_MESSAGE_UTF8 = _SIMPLE_MESSAGE % ('utf-8', 'base64', 'YsOzZHk=\n')
64
64
Content-Disposition: inline
65
65
 
66
66
body
67
 
''' %  { 'version': _bzrlib_version, 'boundary': BOUNDARY }
 
67
''' %  { 'version': _breezy_version, 'boundary': BOUNDARY }
68
68
 
69
69
 
70
70
def final_newline_or_not(msg):