def test_lookup_by_non_existing_field(self):
        with translation.override('en'):
            if django.VERSION >= (1, 7):
                self.assertRaises(TypeError, Standard.objects.get,
                                  normal__non_existing_field=1)
            else:
                self.assertRaises(FieldError, Standard.objects.get,
                                  normal__non_existing_field=1)
dataset/ETHPy150Open KristianOellegaard/django-hvad/hvad/tests/related.py/StandardToTransFKTest.test_lookup_by_non_existing_field/original