def test_empty(self):
     self.maxDiff = None
     self.device = Mock(**self.empty_output)
     obj = ShowLldpNeighborsDetail(device=self.device)
     with self.assertRaises(SchemaEmptyParserError):
         parsed_output = obj.parse()
 def test_golden_customer(self):
     self.maxDiff = None
     self.device = Mock(**self.golden_output_customer)
     obj = ShowLldpNeighborsDetail(device=self.device)
     parsed_output = obj.parse()
     self.assertEqual(parsed_output, self.golden_parsed_output_customer)
Exemple #3
0
 def test_show_lldp_neighbors_detail_missing_ipv6(self):
     self.maxDiff = None
     self.device = Mock(**self.device_output_1)
     obj = ShowLldpNeighborsDetail(device=self.device)
     parsed_output = obj.parse()
     self.assertEqual(parsed_output, self.expected_parsed_output_1)