def test_show_ip_protocols_full1(self):
        super().test_show_ip_protocols_1()
        self.maxDiff = None

        def mapper(key):
            return self.outputs[key]

        self.device.execute = Mock()
        self.device.execute.side_effect = mapper
        
        obj = ShowIpProtocols(device=self.device)
        parsed_output = obj.parse()
        self.assertEqual(parsed_output, self.golden_parsed_output_1)
 def test_show_ip_protocols_empty(self):
     self.maxDiff = None
     self.device = Mock(**self.empty_output)
     obj = ShowIpProtocols(device=self.device)
     with self.assertRaises(SchemaEmptyParserError):
         parsed_output = obj.parse()