Example #1
0
 def test_ascii(self):
     self.assertEqual(
         bits_to_str("100001100101111010000010010110100000110010011100"),
         'azAZ09')
Example #2
0
 def test_char_size(self):
     self.assertEqual(
         bits_to_str("000100100001011",
                     char_size=5),
         '\x08\x02\x1a')
Example #3
0
 def test_bit_order(self):
     self.assertEqual(bits_to_str("0100000011111101"), '\x02\xbf')