From 5c93a22e957c65df3fa146f3423a87d93753fc85 Mon Sep 17 00:00:00 2001 From: Yesudeep Mangalapilly Date: Tue, 16 Aug 2011 14:45:38 +0530 Subject: Adds common includes and tests. --- tests/test_common.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'tests') diff --git a/tests/test_common.py b/tests/test_common.py index bad24f8..9980b15 100644 --- a/tests/test_common.py +++ b/tests/test_common.py @@ -34,6 +34,9 @@ class Test_byte_size(unittest2.TestCase): self.assertRaises(TypeError, byte_size, None) class Test_bit_size(unittest2.TestCase): + def test_zero(self): + self.assertEqual(bit_size(0), 0) + def test_values(self): self.assertEqual(bit_size(1023), 10) self.assertEqual(bit_size(1024), 11) -- cgit v1.2.1