summaryrefslogtreecommitdiff
path: root/tests/test_format.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_format.py')
-rw-r--r--tests/test_format.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/test_format.py b/tests/test_format.py
index 53966e1..7d936c5 100644
--- a/tests/test_format.py
+++ b/tests/test_format.py
@@ -17,6 +17,7 @@ class TestFormats(unittest.TestCase):
(0b1100011, 7, '1100011')]
for b, l, s in nums:
self.assertEqual(int2bin(b, l), s)
+ self.assertRaises(ValueError, int2bin, 12, 'abc')
def test_datetime_formats(self):
f = [(datetime.datetime(2013, 1, 2, 3, 4, 0),