def test_numbers_for_defaults(self): for arglist in self.numbers_for_defaults: self.assertEqual(parsing.normalise(arglist[0]), arglist[1])
def test_varargs(self): for arglist in self.varargs: self.assertEqual(parsing.normalise(arglist[0]), arglist[1])
def test_multiple_qualifiers(self): for arglist in self.multiple_qualifiers: self.assertEqual(parsing.normalise(arglist[0]), arglist[1])
def test_flags_in_defaults(self): for arglist in self.flags_in_defaults: self.assertEqual(parsing.normalise(arglist[0]), arglist[1])
def test_normalise_arglist(test_input, expected): assert parsing.normalise(test_input) == expected
def test_normalise_arglist(self): for arglist in self.arglists: self.assertEqual(parsing.normalise(arglist[0]), arglist[1])
def test_multiple_namespaces(test_input, expected): assert parsing.normalise(test_input) == expected
def test_keywords_almost_in_typenames(test_input, expected): assert parsing.normalise(test_input) == expected
def test_numbers_for_defaults(test_input, expected): assert parsing.normalise(test_input) == expected
def test_flags_in_defaults(test_input, expected): assert parsing.normalise(test_input) == expected
def test_fundamental_types(test_input, expected): assert parsing.normalise(test_input) == expected
def test_multiple_qualifiers(test_input, expected): assert parsing.normalise(test_input) == expected
def test_varargs(test_input, expected): assert parsing.normalise(test_input) == expected
def test_false_signatures(): # This is an invalid function definition. Caused by a bug in Doxygen. See openbabel/src/ops.cpp : theOpCenter("center") from pyparsing import ParseException with pytest.raises(ParseException): parsing.normalise('("center")')
def test_split_function(self): for function in self.functions: self.assertEqual(parsing.normalise(function[0]), function[1])
def test_multiple_namespaces(self): for arglist in self.multiple_namespaces: self.assertEqual(parsing.normalise(arglist[0]), arglist[1])
def test_split_function(test_input, expected): assert parsing.normalise(test_input) == expected