def test_show_run_router_isis_empty(self): self.maxDiff = None self.device = Mock(**self.empty_output) obj = ShowRunRouterIsis(device=self.device) with self.assertRaises(SchemaEmptyParserError): parsed_output = obj.parse()
def test_show_run_router_isis_full1(self): self.maxDiff = None self.device = Mock(**self.golden_output1) obj = ShowRunRouterIsis(device=self.device) parsed_output = obj.parse() self.assertEqual(parsed_output, self.golden_parsed_output1)