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