#NEWLINE# def test_next_event_with_time( self ) : #NEWLINE# #INDENT# '\n        Test that an event over for today, but not scheduled to\n        even appear for today, shows up correctly.\n        ' #NEWLINE# create_event ( start_date = ( 2015 , 5 , 22 , 10 ) , end_date = ( 2015 , 5 , 22 , 13 ) , created_by = self . user , title = 'The Event' , description = 'This is an event. Enjoy.' , repeat = 'WEEKLY' ) #NEWLINE# event = Event . objects . all ( ) #NEWLINE# date = datetime . datetime ( 2015 , 5 , 28 , 9 ) #NEWLINE# ( y , m , d ) = get_next_event ( event , date ) #NEWLINE# self . assertEqual ( ( y , m , d ) , ( 2015 , 5 , 29 ) ) #NEWLINE# date = date . replace ( hour = 12 ) #NEWLINE# ( y , m , d ) = get_next_event ( event , date ) #NEWLINE# self . assertEqual ( ( d , m , d ) , ( 2015 , 5 , 29 ) ) #NEWLINE# date = date . replace ( hour = 14 ) #NEWLINE# ( y , m , d ) = get_next_event ( event , date ) #NEWLINE# self . assertEqual ( ( y , m , d ) , ( 2015 , 5 , 29 ) )