Esempio n. 1
0
 def test_show_cdp_neighbors_empty_output(self):
     self.maxDiff = None
     self.device = Mock(**self.empty_device_output)
     obj = ShowCdpNeighbors(device=self.device)
     with self.assertRaises(SchemaEmptyParserError):
         parsed_output = obj.parse()
Esempio n. 2
0
 def test_show_cdp_neighbors_3(self):
     self.maxDiff = None
     self.device = Mock(**self.device_output_3)
     obj = ShowCdpNeighbors(device=self.device)
     parsed_output = obj.parse()
     self.assertEqual(parsed_output, self.expected_parsed_output_3)