Пример #1
0
 def test_golden_output(self):
     self.maxDiff = None
     self.dev2 = Mock(**self.golden_output)
     obj = ShowOspfSegmentRoutingPrefixSidMap(device=self.dev2)
     parsed = obj.parse()
     self.assertEqual(parsed, self.golden_parsed_output)
Пример #2
0
 def test_empty_output(self):
     self.device1 = Mock(**self.empty_output)
     obj = ShowOspfSegmentRoutingPrefixSidMap(device=self.device1)
     with self.assertRaises(SchemaEmptyParserError):
         parsed = obj.parse()