示例#1
0
 def test_empty(self):
     self.device = Mock(**self.empty_output)
     obj = ShowRunningConfigMsdp(device=self.device)
     with self.assertRaises(SchemaEmptyParserError):
         parsed_output = obj.parse()
示例#2
0
 def test_golden_vrf_default(self):
     self.maxDiff = None
     self.device = Mock(**self.golden_output_vrf_default)
     obj = ShowRunningConfigMsdp(device=self.device)
     parsed_output = obj.parse(vrf='default')
     self.assertEqual(parsed_output, self.golden_parsed_output_default_vrf)
示例#3
0
 def test_golden_vrf_pip(self):
     self.maxDiff = None
     self.device = Mock(**self.golden_output_vrf_VRF1_pip)
     obj = ShowRunningConfigMsdp(device=self.device)
     parsed_output = obj.parse(vrf='VRF1', pip_str='description')
     self.assertEqual(parsed_output, self.golden_parsed_output_vrf_pip)
示例#4
0
 def test_golden(self):
     self.maxDiff = None
     self.device = Mock(**self.golden_output)
     obj = ShowRunningConfigMsdp(device=self.device)
     parsed_output = obj.parse()
     self.assertEqual(parsed_output, self.golden_parsed_output)