Пример #1
0
 def test_bitset_valid_initialization(self):
     b = BitSet(255)
     assert b.size() == 255
     bs = b.bitset_as_string()
     # ugly mangling to get to byte_size and not recalculate
     assert bs == (chr(0) * b._BitSet__byte_size)