Пример #1
0
 def test_empty(self):
     self.dev1 = Mock(**self.empty_output)
     obj = ShowAccessLists(device=self.dev1)
     with self.assertRaises(SchemaEmptyParserError):
         parsed_output = obj.parse()
Пример #2
0
 def test_golden(self):
     self.maxDiff = None
     self.dev_c3850 = Mock(**self.golden_output)
     obj = ShowAccessLists(device=self.dev_c3850)
     parsed_output = obj.parse()
     self.assertEqual(parsed_output, self.golden_parsed_output)
Пример #3
0
 def test_golden_standard(self):
     self.maxDiff = None
     self.dev1 = Mock(**self.golden_output_standard)
     obj = ShowAccessLists(device=self.dev1)
     parsed_output = obj.parse()
     self.assertEqual(parsed_output, self.golden_parsed_output_standard)