@httpretty.activate
    @data(GET, POST)
    def test_with_error_status_and_invalid_json(self, method):
        self._register_uri(method, body="Invalid JSON", status=500)
        with self.assertRaises(trovebox.TroveboxError):
            GetOrPost(self.client, method).call(self.test_endpoint)
Set an object in Redis using a pipeline.
dataset/ETHPy150Open photo/openphoto-python/tests/unit/test_http_errors.py/TestHttpErrors.test_with_error_status_and_invalid_json--crossover with--dataset/ETHPy150Open refinery29/chassis/chassis/services/cache.py/set_object