Пример #1
0
 def test_show_msdp_sa_cache_empty(self):
     self.maxDiff = None
     self.device = Mock(**self.device_output_empty)
     obj = ShowIpMsdpSaCache(device=self.device)
     with self.assertRaises(SchemaEmptyParserError):
         parsed_output = obj.parse()
Пример #2
0
 def test_show_msdp_sa_cache_3(self):
     self.maxDiff = None
     self.device = Mock(**self.device_output_3)
     obj = ShowIpMsdpSaCache(device=self.device)
     parsed_output = obj.parse()
     self.assertEqual(parsed_output, self.expected_parsed_output_3)