def testGetById(self): profile_id = 50161408 advertiser_id = 454980 loader = Profile(ProfileTest.conn) profile = loader.find_one(profile_id, advertiser_id) print(profile) assert profile_id == profile.get('id')
def testReauth(self): Connection.tmp_file = '/tmp/auth_test.txt' tmp_file = open(Connection.tmp_file, 'w') tmp_file.write('bad_token') profile_id = 423662 advertiser_id = 136402 loader = Profile(ReauthTest.conn) profile = loader.find_one(profile_id, advertiser_id) assert profile is not None
def testGetById(self): profile_id = 423662 advertiser_id = 136402 loader = Profile(ProfileTest.conn) profile = loader.find_one(profile_id, advertiser_id) assert profile_id == profile.get('id')
def testGetById(self): profile_id = 423662 advertiser_id = 136402 loader = Profile(ProfileTest.conn) profile = loader.find_one(profile_id, advertiser_id) assert profile_id == profile.get('id')