'Ensure that authenticating a user using a
token performs only one DB query'

def test_post_json_makes_one_db_query(self):

    auth = (self.header_prefix + self.key)
    def func_to_test():
        return self.csrf_client.post(self.path, {u'example': u'example'}, format=u'json', HTTP_AUTHORIZATION=auth)
    self.assertNumQueries(1, func_to_test)
