#NEWLINE# def test_next_delayed_timestamp( self ) : #NEWLINE# #INDENT# d = ( datetime . datetime . now ( ) + datetime . timedelta ( days = ( - 1 ) ) ) #NEWLINE# d2 = ( d + datetime . timedelta ( days = ( - 2 ) ) ) #NEWLINE# key = int ( time . mktime ( d . timetuple ( ) ) ) #NEWLINE# key2 = int ( time . mktime ( d2 . timetuple ( ) ) ) #NEWLINE# self . resq . enqueue_at ( key , Basic , 'test1' ) #NEWLINE# self . resq . enqueue_at ( d2 , Basic , 'test1' ) #NEWLINE# item = self . resq . next_delayed_timestamp ( ) #NEWLINE# assert ( int ( item ) == key2 )