Merge fix test case from master

This commit is contained in:
Stuart D. Gathman
2016-07-26 07:56:52 -04:00
parent 67d974638a
commit 687bebcd45
2 changed files with 15 additions and 2 deletions
+3 -2
View File
@@ -11,7 +11,8 @@ class AddrCacheTestCase(unittest.TestCase):
self.fname = 'test.dat'
def tearDown(self):
os.remove(self.fname)
if os.path.exists(self.fname):
os.remove(self.fname)
def testAdd(self):
cache = AddrCache(fname=self.fname)
@@ -41,7 +42,7 @@ class AddrCacheTestCase(unittest.TestCase):
def testParseHeader(self):
s='=?UTF-8?B?TGFzdCBGZXcgQ29sZHBsYXkgQWxidW0gQXJ0d29ya3MgQXZhaWxhYmxlAA?='
h = Milter.utils.parse_header(s)
self.assertEqual(s,'Last Few Coldplay Album Artworks Available\x00')
self.assertEqual(h,'Last Few Coldplay Album Artworks Available\x00')
def suite():
s = unittest.makeSuite(AddrCacheTestCase,'test')