#NEWLINE# def testLastWorkedSeveralEntries( self ) : #NEWLINE# #INDENT# 'The worker has several entries on a project. Use the most recent' #NEWLINE# self . login_user ( self . user ) #NEWLINE# for day in range ( 0 , 10 ) : #NEWLINE# #INDENT# this_day = utils . add_timezone ( datetime . datetime ( 2011 , 1 , 1 ) ) #NEWLINE# this_day += relativedelta ( days = day ) #NEWLINE# activity = ( self . activity if ( day == 9 ) else self . devl_activity ) #NEWLINE# self . log_time ( start = this_day , project = self . project , activity = activity ) #NEWLINE# #UNINDENT# self . assertEqual ( self . get_activity ( ) , self . activity . id )