Пример #1
0
 def test_golden_vrf_default(self):
     self.maxDiff = None
     self.device = Mock(**self.golden_output)
     obj = ShowIpv6Rip(device=self.device)
     parsed_output = obj.parse()
     self.assertEqual(parsed_output, self.golden_parsed_output)
Пример #2
0
 def test_golden_vrf_vrf1_non_distribution(self):
     self.maxDiff = None
     self.device = Mock(**self.golden_output_3)
     obj = ShowIpv6Rip(device=self.device)
     parsed_output = obj.parse(vrf="VRF1")
     self.assertEqual(parsed_output, self.golden_parsed_output_3)
Пример #3
0
 def test_empty(self):
     self.device1 = Mock(**self.empty_output)
     obj = ShowIpv6Rip(device=self.device1)
     with self.assertRaises(SchemaEmptyParserError):
         parsed_output = obj.parse()