def test_aggregates_in_where_clause(self):
        qs = Book.objects.values('contact').annotate(Max('id'))
        qs = qs.order_by('contact').values_list('id__max', flat=True)
        # don't do anything with the queryset (qs) before including it as a
        # subquery
        books = Book.objects.order_by('id')
        qs1 = books.filter(id__in=qs)
        qs2 = books.filter(id__in=list(qs))
        self.assertEqual(list(qs1), list(qs2))
Check if we already have workers up and running
dataset/ETHPy150Open AppScale/appscale/AppServer/lib/django-1.2/tests/regressiontests/aggregation_regress/tests.py/AggregationTests.test_aggregates_in_where_clause--crossover with--dataset/ETHPy150Open nicholaskuechler/autoscale-rackspacecloud-fabric-celery/auto-scale.py/check_if_workers_running