def setUp(self): """docstring for setup""" self.api_client = createClient() sugar = "sugar!" comb = createAuthCombination(self.api_client.secret_key, sugar) res = self.client.post("/1/auth/" + self.api_client.client_id + "/", {"sugar": sugar, "comb": comb}) self.token = eval(res.content)["token"]
def setUp(self): """docstring for setup""" self.api_client = createClient() self.sugar = "sugar!" self.comb = createAuthCombination(self.api_client.secret_key, self.sugar) pass