def test_tk102_location_low(): message = tk102.decode(tk102_location_low_string) assert (message) assert (unicode == type(message.imei))
def test_tk102_hb(): message = tk102.decode(tk102_heartbeat_string) assert (message) assert (unicode == type(message.imei))
def test_tk102_bad(): message = tk102.decode('A BAD DATASTRING') assert (None == message)
def test_tk102_init(): message = tk102.decode(tk102_init_string) assert (message) assert (unicode == type(message.imei))
def test_tk102_bad(): message = tk102.decode("A BAD DATASTRING") assert None == message
def test_tk102_hb(): message = tk102.decode(tk102_heartbeat_string) assert message assert unicode == type(message.imei)
def test_tk102_init(): message = tk102.decode(tk102_init_string) assert message assert unicode == type(message.imei)
def test_tk102_location_full(): message = tk102.decode(tk102_location_full_string) assert message assert unicode == type(message.imei)