def test_empty(self): self.device = Mock(**self.empty_output) obj = ShowVpc(device=self.device) with self.assertRaises(SchemaEmptyParserError): parsed_output = obj.parse()
def test_golden_5(self): self.maxDiff = None self.device = Mock(**self.golden_output_5) obj = ShowVpc(device=self.device) parsed_output = obj.parse() self.assertEqual(parsed_output, self.golden_parsed_output_5)
def test_golden_7(self): self.device = Mock(**self.golden_output7) obj = ShowVpc(device=self.device) parsed_output = obj.parse() self.assertEqual(parsed_output, self.golden_parsed_output_7)