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