Пример #1
0
 def test_show_lisp_service_statistics_empty(self):
     self.maxDiff = None
     self.device = Mock(**self.empty_output)
     obj = ShowLispServiceStatistics(device=self.device)
     with self.assertRaises(SchemaEmptyParserError):
         parsed_output = obj.parse(service='ipv4', instance_id='*')
Пример #2
0
 def test_show_lisp_service_statistics_full3(self):
     self.maxDiff = None
     self.device = Mock(**self.golden_output3)
     obj = ShowLispServiceStatistics(device=self.device)
     parsed_output = obj.parse(service='ethernet', instance_id='*')
     self.assertEqual(parsed_output, self.golden_parsed_output3)