Example #1
0
 def test_multiple_bytes(self):
     self.assertEqual(
         bytes_to_bits([255, 128, 16]), '111111110000000100001000')
Example #2
0
 def test_one_byte(self):
     self.assertEqual(bytes_to_bits([19]), '11001000')