def check_query_count(self, queryset):
        ci = len(connection.queries)

        result = list([map(text_type, (x.actor, x.target, x.action_object))
                       for x in queryset])
        self.assertTrue(ci - len(connection.queries) <= 4,
                        'Too many queries, got %d expected no more than 4' %
                        len(connection.queries))
        return result
dataset/ETHPy150Open justquick/django-activity-stream/actstream/tests/test_zombies.py/ZombieTest.check_query_count/swapped operands of `-`