예제 #1
0
 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)
예제 #2
0
 def assert_specifications_string(
         self, string: str, specifications: Dict[str,
                                                 Specification]) -> None:
     parser = Parser()
     parser.parse_string(string)
     self.assertEqual(parser.specifications(), specifications)