def testZero(self): uut = BitFieldMultiByteEncoder() self.assertEqual(uut.encode(0, 10, False), Bits(bytes='\x00'))