Ejemplo n.º 1
0
 def test_empty(self):
     self.dev = Mock(**self.empty_output)
     obj = ShowLldpNeighborsDetail(device=self.dev)
     with self.assertRaises(SchemaEmptyParserError):
         parsed_output = obj.parse()
Ejemplo n.º 2
0
 def test_golden_2(self):
     self.maxDiff = None
     self.dev = Mock(**self.golden_output_2)
     obj = ShowLldpNeighborsDetail(device=self.dev)
     parsed_output = obj.parse()
     self.assertEqual(parsed_output,self.golden_parsed_output_2)
Ejemplo n.º 3
0
 def test(self):
     self.maxDiff = None
     self.dev1 = Mock(**self.device_output)
     obj = ShowLldpNeighborsDetail(device=self.dev1)
     parsed_output = obj.parse()
     self.assertEqual(parsed_output, self.expected_output)