10 PKG =
'rosbridge_library'
11 NAME =
'test_outgoing_message'
16 msg = String(data=
"foo")
19 result = outgoing.get_json_values()
20 self.assertEqual(result[
'data'], msg.data)
22 again = outgoing.get_json_values()
23 self.assertTrue(result
is again)
26 msg = String(data=
"foo")
29 result = outgoing.get_cbor_values()
30 self.assertEqual(result[
'data'], msg.data)
32 again = outgoing.get_cbor_values()
33 self.assertTrue(result
is again)
36 if __name__ ==
'__main__':
37 rosunit.unitrun(PKG, NAME, TestOutgoingMessage)