Ejemplo n.º 1
0
 def test_empty2(self):
     self.device = Mock(**self.empty_output)
     obj = ShowIpVrf(device=self.device)
     with self.assertRaises(SchemaEmptyParserError):
         parsed_output = obj.parse(vrf='Mgmt-intf')
Ejemplo n.º 2
0
 def test_golden2(self):
     self.device = Mock(**self.golden_output2)
     obj = ShowIpVrf(device=self.device)
     parsed_output = obj.parse(vrf='Mgmt-intf')
     self.assertEqual(parsed_output, self.golden_parsed_output2)
Ejemplo n.º 3
0
 def test_golden1(self):
     self.maxDiff = None
     self.device = Mock(**self.golden_output1)
     obj = ShowIpVrf(device=self.device)
     parsed_output = obj.parse(vrf='VRF1')
     self.assertEqual(parsed_output, self.golden_parsed_output1)