def __getattr__(self, attr):
        if attr in ('get', 'post', 'put', 'delete', 'trace', 'head', 'patch'):
            return lambda *args, **kwargs: self.json_request(attr, *args, **kwargs)
        else:
            return getattr(super(HttpTestCase, self), attr)
dataset/ETHPy150Open fusionbox/django-widgy/tests/core_tests/tests/base.py/HttpTestCase.__getattr__/original