def test_empty(self): self.device = Mock(**self.empty_output) obj = ShowRunningConfigMsdp(device=self.device) with self.assertRaises(SchemaEmptyParserError): parsed_output = obj.parse()
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)
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)
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)