コード例 #1
0
 def test_golden2(self):
     self.maxDiff = None
     self.device = Mock(**self.golden_output2)
     obj = ShowIpv6Neighbors(device=self.device)
     parsed_output = obj.parse(vrf='VRF1')
     self.assertEqual(parsed_output, self.golden_parsed_output2)
コード例 #2
0
 def test_golden3(self):
     self.maxDiff = None
     self.device = Mock(**self.golden_output3)
     obj = ShowIpv6Neighbors(device=self.device)
     parsed_output = obj.parse(interface='Gi0/0/0/0.390')
     self.assertEqual(parsed_output, self.golden_parsed_output3)
コード例 #3
0
 def test_empty(self):
     self.device = Mock(**self.empty_output)
     obj = ShowIpv6Neighbors(device=self.device)
     with self.assertRaises(SchemaEmptyParserError):
         parsed_output = obj.parse()