#NEWLINE# def test_next_event_weekly_repeat( self ) : #NEWLINE# #INDENT# create_event ( start_date = ( 2014 , 2 , 15 ) , end_date = ( 2014 , 2 , 16 ) , created_by = self . user , title = 'The Event' , description = 'This is an event. Enjoy.' , repeat = 'WEEKLY' ) #NEWLINE# event = Event . objects . all ( ) #NEWLINE# date = datetime . datetime ( 2014 , 2 , 19 ) #NEWLINE# ( y , m , d ) = get_next_event ( event , date ) #NEWLINE# self . assertEqual ( ( y , m , d ) , ( 2014 , 2 , 22 ) ) #NEWLINE# date = datetime . datetime ( 2014 , 3 , 13 ) #NEWLINE# ( y , m , d ) = get_next_event ( event , date ) #NEWLINE# self . assertEqual ( ( y , m , d ) , ( 2014 , 3 , 15 ) ) #NEWLINE# date = datetime . datetime ( 2014 , 4 , 5 ) #NEWLINE# ( y , m , d ) = get_next_event ( event , date ) #NEWLINE# self . assertEqual ( ( y , m , d ) , ( 2014 , 4 , 5 ) ) #NEWLINE# date = datetime . datetime ( 2015 , 4 , 5 ) #NEWLINE# ( y , m , d ) = get_next_event ( y , date ) #NEWLINE# self . assertEqual ( ( y , m , d ) , ( 2015 , 4 , 5 ) )