19 Unittests of parse_namespaces function.
24 Test the ability to load all the UAVCAN v0 messages
26 built_in_dir =
'{}/../../pyuavcan_v0/dsdl_files/uavcan'.
format(os.path.dirname(__file__))
31 Validate the parser allows and handles duplicate definitions in the search dir
33 ns0_dir =
'{}/fake_dsdl/ns0_base/ns0'.
format(os.path.dirname(__file__))
34 ns0_dir_with_duplicate =
'{}/fake_dsdl/ns0_duplicated/ns0'.
format(os.path.dirname(__file__))
40 Validate the parser does not allow redefinitions in the search dir
42 ns0_dir =
'{}/fake_dsdl/ns0_base/ns0'.
format(os.path.dirname(__file__))
43 ns0_dir_with_redefinition =
'{}/fake_dsdl/ns0_redefined/ns0'.
format(os.path.dirname(__file__))
46 self.assertTrue(
False)
47 except DsdlException
as e:
48 self.assertTrue(e.args[0].startswith(
"Redefinition of data type ID"))
51 if __name__ ==
'__main__':