Esempio n. 1
0
 def test_golden_vrf_non_default(self):
     self.device = Mock(**self.golden_output2)
     obj = ShowIpv6Rpf(device=self.device)
     parsed_output = obj.parse(mroute='2001:99:99::99', vrf='VRF1')
     self.assertEqual(parsed_output, self.golden_parsed_output2)
Esempio n. 2
0
 def test_empty(self):
     self.device1 = Mock(**self.empty_output)
     obj = ShowIpv6Rpf(device=self.device1)
     with self.assertRaises(SchemaEmptyParserError):
         parsed_output = obj.parse(mroute='2001:99:99::99')