#NEWLINE# def test_constant_representation_rk( self ) : #NEWLINE# #INDENT# " ensures that all services' API clients are consistent through a simulated download->upload cycle " #NEWLINE# rkSvc = Service . FromID ( 'runkeeper' ) #NEWLINE# act = TestTools . create_random_activity ( rkSvc , rkSvc . SupportedActivities [ 0 ] , withLaps = False ) #NEWLINE# record = rkSvc . _createUploadData ( act ) #NEWLINE# record [ 'has_path' ] = act . GPS #NEWLINE# returnedAct = rkSvc . _populateActivity ( record ) #NEWLINE# act . Name = None #NEWLINE# rkSvc . _populateActivityWaypoints ( returnedAct , returnedAct ) #NEWLINE# returnedAct . EnsureTZ ( ) #NEWLINE# self . assertActivitiesEqual ( returnedAct , act )