summaryrefslogtreecommitdiffstats
path: root/Lib/email/test/test_email.py
diff options
context:
space:
mode:
authorR. David Murray <rdmurray@bitdance.com>2010-12-02 21:47:19 (GMT)
committerR. David Murray <rdmurray@bitdance.com>2010-12-02 21:47:19 (GMT)
commita0b44b5adb05e96e68297adcba39985b8f4dee61 (patch)
tree1015b86932a3a58250e2833d8fec977671eddf04 /Lib/email/test/test_email.py
parent52173d4959a1c1e961efab2522e4ba8a22a3c7c6 (diff)
downloadcpython-a0b44b5adb05e96e68297adcba39985b8f4dee61.zip
cpython-a0b44b5adb05e96e68297adcba39985b8f4dee61.tar.gz
cpython-a0b44b5adb05e96e68297adcba39985b8f4dee61.tar.bz2
#8989: add 'domain' keyword to make_msgid.
Patch by Adrian von Bidder.
Diffstat (limited to 'Lib/email/test/test_email.py')
-rw-r--r--Lib/email/test/test_email.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/Lib/email/test/test_email.py b/Lib/email/test/test_email.py
index 5545abe..7993486 100644
--- a/Lib/email/test/test_email.py
+++ b/Lib/email/test/test_email.py
@@ -2457,6 +2457,10 @@ multipart/report
text/rfc822-headers
""")
+ def test_make_msgid_domain(self):
+ self.assertEqual(
+ email.utils.make_msgid(domain='testdomain-string')[-19:],
+ '@testdomain-string>')
# Test the iterator/generators