Beispiel #1
0
 def test_show_nve_empty(self):
     self.device = Mock(**self.empty_output)
     obj = ShowIpv6NdInterface(device=self.device)
     with self.assertRaises(SchemaEmptyParserError):
         parsed_output = obj.parse()
Beispiel #2
0
 def test_golden1(self):
     self.maxDiff = None
     self.device = Mock(**self.golden_output1)
     obj = ShowIpv6NdInterface(device=self.device)
     parsed_output = obj.parse(vrf="VRF1", interface='Ethernet1/2.420')
     self.assertEqual(parsed_output, self.golden_parsed_output1)
Beispiel #3
0
 def test_show_ipv6_nd_interface_golden(self):
     self.maxDiff = None
     self.device = Mock(**self.golden_output)
     obj = ShowIpv6NdInterface(device=self.device)
     parsed_output = obj.parse(vrf="all")
     self.assertEqual(parsed_output, self.golden_parsed_output)