def test_golden2(self): self.maxDiff = None self.device = Mock(**self.golden_output2) obj = ShowFlowMonitor(device=self.device) parsed_output = obj.parse(name='FLOW-MONITOR-1') self.assertEqual(parsed_output, self.golden_parsed_output2)
def test_empty(self): self.maxDiff = None self.device = Mock(**self.empty_output) obj = ShowFlowMonitor(device=self.device) with self.assertRaises(SchemaEmptyParserError): parsed_output = obj.parse(name='FLOW-MONITOR-1')