def testChars(self): """Tests to encode a multi character prefix.""" label = 'ab' bytes = [ ord('b'), ord('a') ] self.assertEqual(make_dafsa.encode_prefix(label), bytes)
def testChar(self): """Tests to encode a single character prefix.""" label = 'a' bytes = [ ord('a') ] self.assertEqual(make_dafsa.encode_prefix(label), bytes)