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