From d432099880e26a4a71dc8d429996ad6c66ee9b47 Mon Sep 17 00:00:00 2001 From: Brian Warner Date: Fri, 6 Apr 2007 16:33:22 -0700 Subject: [PATCH] more allmydata.util test coverage, rename the test case to be more correct --- src/allmydata/test/{test_utils.py => test_util.py} | 1 + 1 file changed, 1 insertion(+) rename src/allmydata/test/{test_utils.py => test_util.py} (98%) diff --git a/src/allmydata/test/test_utils.py b/src/allmydata/test/test_util.py similarity index 98% rename from src/allmydata/test/test_utils.py rename to src/allmydata/test/test_util.py index fa9792ef6..b023ddc39 100644 --- a/src/allmydata/test/test_utils.py +++ b/src/allmydata/test/test_util.py @@ -14,6 +14,7 @@ class IDLib(unittest.TestCase): self.failUnlessEqual(idlib.b2a_or_none("\x12\x34"), "ci2a====") def test_a2b(self): self.failUnlessEqual(idlib.a2b("ci2a===="), "\x12\x34") + self.failUnlessRaises(TypeError, idlib.a2b, "bogus") def test_peerid(self): # these are 160-bit numbers peerid = "\x80" + "\x00" * 19