Esempio n. 1
0
 def test_show_ospf_interface_instance(self):
     self.device = Mock(**self.golden_output_instance)
     obj = ShowOspfInterface(device=self.device)
     parsed_output = obj.parse(instance='master')
     self.assertEqual(parsed_output, self.golden_parsed_output_instance)
Esempio n. 2
0
 def test_show_ospf_empty(self):
     self.device = Mock(**self.empty_output)
     obj = ShowOspfInterface(device=self.device)
     with self.assertRaises(SchemaEmptyParserError):
         obj.parse()