def test_validate_annotations(self): """Test validate_annotations function.""" # Test we skip empty files self.assertIsNone( panh.validate_annotations( "test/testdata/pan_empty_annotated_output.xml")) # Test we get valid content back self.assertIsNotNone( panh.validate_annotations( "test/testdata/pan_annotated_output.xml"))
def test_get_types_and_functions(self): """Test get_types_and_functions function.""" root = panh.validate_annotations("test/testdata/pan_annotated_output.xml") self.assertIsNotNone(panh.get_types_and_functions(root)) el1 = self.create_element("test", "test") self.assertEquals(panh.get_types_and_functions(el1), (None, None))
def test_validate_annotations(self): """Test validate_annotations function.""" # Test we skip empty files self.assertIsNone(panh.validate_annotations("test/testdata/pan_empty_annotated_output.xml")) # Test we get valid content back self.assertIsNotNone(panh.validate_annotations("test/testdata/pan_annotated_output.xml"))