示例#1
0
 def test_show_cdp_neighbors_detail_empty(self):
     self.maxDiff = None
     self.device = Mock(**self.device_output_4_empty)
     obj = ShowCdpNeighborsDetail(device=self.device)
     with self.assertRaises(SchemaEmptyParserError):
         parsed_output = obj.parse()
示例#2
0
 def test_show_cdp_neighbors_detail_missing_capabilities(self):
     self.maxDiff = None
     self.device = Mock(**self.device_output_6)
     obj = ShowCdpNeighborsDetail(device=self.device)
     parsed_output = obj.parse()
     self.assertEqual(parsed_output, self.expected_parsed_output_6)
示例#3
0
 def test_show_cdp_neighbors_detail_colon_in_platform(self):
     self.maxDiff = None
     self.device = Mock(**self.device_output_8)
     obj = ShowCdpNeighborsDetail(device=self.device)
     parsed_output = obj.parse()
     self.assertEqual(parsed_output, self.expected_parsed_output_8)