def testQuery(self):
    CLIENT_URL = '/heatmap/query/'
    TABLE_LIST = ['data_rev', 'data']
    TABLE_NAME = "testQuery"
    response = self.client.get(CLIENT_URL)
    self.assertEqual(response.status_code, 200)
    # Test the post
    th.CreateTableWithData(TABLE_NAME, self.conn)
    query_string = "SELECT * from %s" % TABLE_NAME
    form = QueryForm(data={'query_string': query_string})
    post_dict = {'form': form,
                 'table_list': TABLE_LIST}
    response = self.client.post(CLIENT_URL, post_dict)
    self.assertEqual(response.status_code, 200)