def test_lookup_by_shared_field(self):
        en = Normal.objects.language('en').get(pk=self.normal_id[1])
        by_shared_field = Standard.objects.get(normal__shared_field=en.shared_field)
        with translation.override('en'):
            self.assertEqual(by_shared_field.normal.pk, en.pk)
            self.assertEqual(by_shared_field.normal.shared_field, en.shared_field)
            self.assertEqual(by_shared_field.normal.translated_field, en.translated_field)
            self.assertTrue(by_shared_field in en.standards.all())
dataset/ETHPy150Open KristianOellegaard/django-hvad/hvad/tests/related.py/StandardToTransFKTest.test_lookup_by_shared_field/original