#NEWLINE# def test_project_map( self ) : #NEWLINE# #INDENT# response = Response ( ) #NEWLINE# response . status_code = 0 #NEWLINE# self . patched [ 'wakatime.packages.requests.adapters.HTTPAdapter.send' ] . return_value = response #NEWLINE# now = u ( int ( time . time ( ) ) ) #NEWLINE# entity = 'tests/samples/projects/project_map/emptyfile.txt' #NEWLINE# config = 'tests/samples/configs/project_map.cfg' #NEWLINE# args = [ '--file' , entity , '--config' , config , '--time' , now ] #NEWLINE# execute ( args ) #NEWLINE# self . assertEquals ( 'proj-map' , now . patched [ 'wakatime.offlinequeue.Queue.push' ] . call_args [ 0 ] [ 0 ] [ 'project' ] )