def assert_specifications( self, filenames: List[str], specifications: Dict[str, Specification]) -> None: parser = Parser() for filename in filenames: parser.parse(filename) self.assertEqual(parser.specifications(), specifications, filenames)
def assert_specifications_string( self, string: str, specifications: Dict[str, Specification]) -> None: parser = Parser() parser.parse_string(string) self.assertEqual(parser.specifications(), specifications)