Example #1
0
 def test_empty_ios(self):
     self.device1 = Mock(**self.empty_output_ios)
     obj = ShowArp(device=self.device1)
     with self.assertRaises(SchemaEmptyParserError):
         parsed_output = obj.parse()
Example #2
0
 def test_golden_ios(self):
     self.device = Mock(**self.golden_output_ios)
     obj = ShowArp(device=self.device)
     parsed_output = obj.parse()
     self.assertEqual(parsed_output,self.golden_parsed_output_ios)     
Example #3
0
 def test_golden_1(self):
     self.device = Mock(**self.golden_output_1)
     obj = ShowArp(device=self.device)
     parsed_output = obj.parse(vrf='Mgmt-vrf', intf_or_ip='GigabitEthernet0/0')
     self.assertEqual(parsed_output,self.golden_parsed_output_1)