

def test_in_bulk(self):
    manager = get_translation_aware_manager(Standard)
    with translation.override('en'):
        qs = manager.filter(normal__translated_field=NORMAL[STANDARD[1].normal].translated_field['en'])
        standard_dict = qs.in_bulk(self.standard_id.values())
        self.assertCountEqual(standard_dict, [self.standard_id[1]])
        with self.assertNumQueries(0):
            self.assertEqual(qs.in_bulk([]), {
                
            })

dataset/ETHPy150Open KristianOellegaard/django-hvad/hvad/tests/related.py StandardToTransFKTest.test_in_bulk/original