Пример #1
0
 def test_golden_2(self):
     self.device = Mock(**self.golden_output_2)
     interface_obj = ShowInterfaceSummary(device=self.device)
     parsed_output = interface_obj.parse()
     self.maxDiff = None
     self.assertEqual(parsed_output, self.golden_parsed_output_2)
Пример #2
0
 def test_empty(self):
     self.device1 = Mock(**self.empty_output)
     interface_obj = ShowInterfaceSummary(device=self.device1)
     with self.assertRaises(SchemaEmptyParserError):
         parsed_output = interface_obj.parse()