@httpretty.activate
    def test_TS_search_tweets(self):

        httpretty.register_uri(httpretty.GET, self.search_url,
                responses=[
                    httpretty.Response(streaming=True, status=200, content_type='text/json', body=self.apiAnsweringMachine('tests/mock-data/search/0.log')),
                    httpretty.Response(streaming=True, status=200, content_type='text/json', body=self.apiAnsweringMachine('tests/mock-data/search/1.log')),
                    httpretty.Response(streaming=True, status=200, content_type='text/json', body=self.apiAnsweringMachine('tests/mock-data/search/2.log')),
                    httpretty.Response(streaming=True, status=200, content_type='text/json', body=self.apiAnsweringMachine('tests/mock-data/search/3.log'))
                    ]
                )

        cnt = 4
        tso = self.createTSO()
        tso.set_count(cnt)
        ts = self.createTS()

        todo = True
        next_max_id = 0

        max_ids = []

        while(todo):
            max_ids.append(next_max_id)
            response = ts.search_tweets(tso)
            todo = len(response['content']['statuses']) == cnt
            for tweet in response['content']['statuses']:
                tweet_id = tweet['id']
                if (tweet_id < next_max_id) or (next_max_id == 0):
                     next_max_id = tweet_id
                     next_max_id -= 1
            tso.set_max_id(next_max_id)

        self.assertEqual(max_ids, [0, 355715848851300353, 355714667852726271, 355712782454358015], "Max ids NOT equal")
Set up and execute delete queries for all the objects in pk_list.
dataset/ETHPy150Open ckoepp/TwitterSearch/tests/test_ts.py/TwitterSearchTest.test_TS_search_tweets--crossover with--dataset/ETHPy150Open AppScale/appscale/AppServer/lib/django-1.4/django/db/models/sql/subqueries.py/DeleteQuery.delete_batch