Пример #1
0
 def test_golden_3(self):
     self.maxDiff = None
     self.dev = Mock(**self.golden_output_3)
     obj = ShowMplsForwardingTable(device=self.dev)
     parsed_output = obj.parse()
     self.assertEqual(parsed_output, self.golden_parsed_output_3)
Пример #2
0
 def test_golden_4(self):
     self.maxDiff = None
     self.dev = Mock(**self.golden_output_4)
     obj = ShowMplsForwardingTable(device=self.dev)
     parsed_output = obj.parse(prefix='10.16.2.2')
     self.assertEqual(parsed_output, self.golden_parsed_output_4)
Пример #3
0
 def test_empty(self):
     self.dev1 = Mock(**self.empty_output)
     obj = ShowMplsForwardingTable(device=self.dev1)
     with self.assertRaises(SchemaEmptyParserError):
         parsed_output = obj.parse()