summaryrefslogtreecommitdiff
path: root/tests/test_format.py
diff options
context:
space:
mode:
authorMarkus Holtermann <info@markusholtermann.eu>2013-06-15 13:42:10 +0200
committerMarkus Holtermann <info@markusholtermann.eu>2013-06-15 13:42:10 +0200
commit16f07cbd74a5499e14250c9b081a8e7fcf54eb34 (patch)
treea8b734bbde52947e6a179840a7121f3c6ffb8264 /tests/test_format.py
parent1f2dc7b9e92a866e88255476aae228d4522bc21c (diff)
downloadbvg-grabber-16f07cbd74a5499e14250c9b081a8e7fcf54eb34.tar.gz
bvg-grabber-16f07cbd74a5499e14250c9b081a8e7fcf54eb34.tar.bz2
bvg-grabber-16f07cbd74a5499e14250c9b081a8e7fcf54eb34.zip
Some more tests
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),