def test_states(): c = Chepy("AA", "BB") state1 = c.to_hex().o c.change_state(1) state2 = c.to_hex().o assert state1 == b"4141" assert state2 == b"4242"