summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_email
diff options
context:
space:
mode:
authorR David Murray <rdmurray@bitdance.com>2012-05-29 00:22:37 (GMT)
committerR David Murray <rdmurray@bitdance.com>2012-05-29 00:22:37 (GMT)
commita7c9ddb59cf11b9e5832636327ed04fb3bf052b2 (patch)
tree10731dab06d2e6a1734f4b763f2e837b7a505853 /Lib/test/test_email
parentd41595b920d098e8f05246cef0af6175d6c045be (diff)
downloadcpython-a7c9ddb59cf11b9e5832636327ed04fb3bf052b2.zip
cpython-a7c9ddb59cf11b9e5832636327ed04fb3bf052b2.tar.gz
cpython-a7c9ddb59cf11b9e5832636327ed04fb3bf052b2.tar.bz2
Regularize test_email/test_headerregistry's references to policy.
Diffstat (limited to 'Lib/test/test_email')
-rw-r--r--Lib/test/test_email/test_headerregistry.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/Lib/test/test_email/test_headerregistry.py b/Lib/test/test_email/test_headerregistry.py
index fa8fd97..e6fe29b 100644
--- a/Lib/test/test_email/test_headerregistry.py
+++ b/Lib/test/test_email/test_headerregistry.py
@@ -650,14 +650,14 @@ class TestFolding(TestHeaderBase):
def test_short_unstructured(self):
h = self.make_header('subject', 'this is a test')
- self.assertEqual(h.fold(policy=self.policy),
+ self.assertEqual(h.fold(policy=policy.default),
'subject: this is a test\n')
def test_long_unstructured(self):
h = self.make_header('Subject', 'This is a long header '
'line that will need to be folded into two lines '
'and will demonstrate basic folding')
- self.assertEqual(h.fold(policy=self.policy),
+ self.assertEqual(h.fold(policy=policy.default),
'Subject: This is a long header line that will '
'need to be folded into two lines\n'
' and will demonstrate basic folding\n')
@@ -676,11 +676,11 @@ class TestFolding(TestHeaderBase):
def test_fold_unstructured_single_word(self):
h = self.make_header('Subject', 'test')
- self.assertEqual(h.fold(policy=self.policy), 'Subject: test\n')
+ self.assertEqual(h.fold(policy=policy.default), 'Subject: test\n')
def test_fold_unstructured_short(self):
h = self.make_header('Subject', 'test test test')
- self.assertEqual(h.fold(policy=self.policy),
+ self.assertEqual(h.fold(policy=policy.default),
'Subject: test test test\n')
def test_fold_unstructured_with_overlong_word(self):
@@ -721,7 +721,7 @@ class TestFolding(TestHeaderBase):
h = self.make_header('To', '"Theodore H. Perfect" <yes@man.com>, '
'"My address is very long because my name is long" <foo@bar.com>, '
'"Only A. Friend" <no@yes.com>')
- self.assertEqual(h.fold(policy=self.policy), textwrap.dedent("""\
+ self.assertEqual(h.fold(policy=policy.default), textwrap.dedent("""\
To: "Theodore H. Perfect" <yes@man.com>,
"My address is very long because my name is long" <foo@bar.com>,
"Only A. Friend" <no@yes.com>
@@ -729,7 +729,7 @@ class TestFolding(TestHeaderBase):
def test_fold_date_header(self):
h = self.make_header('Date', 'Sat, 2 Feb 2002 17:00:06 -0800')
- self.assertEqual(h.fold(policy=self.policy),
+ self.assertEqual(h.fold(policy=policy.default),
'Date: Sat, 02 Feb 2002 17:00:06 -0800\n')