Move expected failure to testutils.py where it can be tagged.

Change to example.com/40 for iniplist with leftover bits to ignore.
This commit is contained in:
Stuart D. Gathman
2016-10-17 23:38:49 -04:00
parent e5c03665e9
commit 36df47f019
2 changed files with 6 additions and 3 deletions
+5
View File
@@ -45,6 +45,11 @@ class AddrCacheTestCase(unittest.TestCase):
h = Milter.utils.parse_header(s)
self.assertEqual(h,b'Last Few Coldplay Album Artworks Available\x00')
@unittest.expectedFailure
def testParseAddress(self):
s = Milter.utils.parseaddr('a(WRONG)@b')
self.assertEqual(s,('WRONG', 'a@b'))
def suite():
s = unittest.makeSuite(AddrCacheTestCase,'test')
s.addTest(doctest.DocTestSuite(Milter.utils))