commit | d1060d36697efcd1179ffdbc7b16d3a68643b8c5 | [log] [tgz] |
---|---|---|
author | Yesudeep Mangalapilly <yesudeep@gmail.com> | Tue Aug 16 14:45:38 2011 +0530 |
committer | Yesudeep Mangalapilly <yesudeep@gmail.com> | Tue Aug 16 14:45:38 2011 +0530 |
tree | e7c2d86d7d85dc5868f7a03f74474c2dc80cf191 | |
parent | 1caa13041d47213e8afba0ee8ccda67259203825 [diff] [blame] |
Adds common includes and 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 @@ 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)