def test_show_ipv6_neighbors_vrf_golden4(self): self.device = Mock(**self.golden_output3) obj = ShowIpv6Neighbors(device=self.device) parsed_output = obj.parse(vrf='VRF1', interface='Gi3.420') self.assertEqual(parsed_output, self.golden_parsed_output3)
def test_show_ipv6_neighbors_golden1(self): self.device = Mock(**self.golden_output1) obj = ShowIpv6Neighbors(device=self.device) parsed_output = obj.parse() self.assertEqual(parsed_output, self.golden_parsed_output1)
def test_show_ipv6_neighbors_vrf_golden2(self): 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)
def test_show_ipv6_neighbors_empty(self): self.device = Mock(**self.empty_output) obj = ShowIpv6Neighbors(device=self.device) with self.assertRaises(SchemaEmptyParserError): parsed_output = obj.parse()