示例#1
0
 def test_golden_all(self):
     self.maxDiff = None
     self.dev = Mock(**self.golden_output_all)
     obj = ShowMplsLdpDiscovery(device=self.dev)
     parsed_output = obj.parse(all='all')
     self.assertEqual(parsed_output, self.golden_parsed_output_all)
示例#2
0
 def test_empty(self):
     self.dev = Mock(**self.empty_output)
     obj = ShowMplsLdpDiscovery(device=self.dev)
     with self.assertRaises(SchemaEmptyParserError):
         parsed_output = obj.parse()