예제 #1
0
 def test_show_lisp_dynamic_eid_detail_empty(self):
     self.maxDiff = None
     self.device = Mock(**self.empty_output)
     obj = ShowLispDynamicEidDetail(device=self.device)
     with self.assertRaises(SchemaEmptyParserError):
         parsed_output = obj.parse(instance_id=101)
예제 #2
0
 def test_show_lisp_dynamic_eid_detail_full3(self):
     self.maxDiff = None
     self.device = Mock(**self.golden_output3)
     obj = ShowLispDynamicEidDetail(device=self.device)
     parsed_output = obj.parse(instance_id=101)
     self.assertEqual(parsed_output, self.golden_parsed_output3)