def test_show_vrf_empty(self): self.device = Mock(**self.empty_output) obj = ShowVrfDetail(device=self.device) with self.assertRaises(SchemaEmptyParserError): parsed_output = obj.parse()
def test_show_vrf_word(self): self.maxDiff = None self.device = Mock(**self.golden_output_1) obj = ShowVrfDetail(device=self.device) parsed_output = obj.parse(vrf='VRF1') self.assertEqual(parsed_output, self.golden_parsed_output_1)