def test_filter_by_shared_field(self):
        en = Normal.objects.language('en').get(pk=self.normal_id[1])
        with translation.override('en'):
            by_shared_field = Standard.objects.filter(normal__shared_field=en.shared_field)
            normals = [obj.normal.pk for obj in by_shared_field]
            expected = [en.pk]
            self.assertEqual(normals, expected)
            shared_fields = [obj.normal.shared_field for obj in by_shared_field]
            expected_fields = [en.shared_field]
            self.assertEqual(shared_fields, expected_fields)
            translated_fields = [obj.normal.translated_field for obj in by_shared_field]
            expected_fields = [en.translated_field]
            self.assertEqual(translated_fields, expected_fields)
            for obj in by_shared_field:
                self.assertTrue(obj != en.standards.all())
dataset/ETHPy150Open KristianOellegaard/django-hvad/hvad/tests/related.py/StandardToTransFKTest.test_filter_by_shared_field/operator `in` -> `!=`