def test_empty_output(self): self.device = Mock(**self.empty_output) obj = ShowL2routeEvpnMacEvi(device=self.device) with self.assertRaises(SchemaEmptyParserError): parsed_output = obj.parse(evi='1001', mac='0000.04b1.0000')
def test_show_l2route_evpn_mac_1(self): self.maxDiff = None self.device = Mock(**self.golden_output_1) obj = ShowL2routeEvpnMacEvi(device=self.device) parsed_output = obj.parse(evi='1001', mac='0000.0191.0000') self.assertEqual(parsed_output, self.golden_parsed_output_1)