def list(self, id): self.json_data = requests.get(self.list_url, params={ "access_token": WeWork.get_access_token(), "id": id }).json() self.verbose(self.json_data) return self.json_data
def test_get_token(self): r = WeWork.get_access_token(WeWork.secret) assert r["errcode"] == 0
def test_get_token(self): wework = WeWork() token = wework.get_access_token() assert token != None