#NEWLINE# def test_next_event_start_end_diff_month_monthly_repeat( self ) : #NEWLINE# #INDENT# create_event ( start_date = ( 2014 , 2 , 28 ) , end_date = ( 2014 , 3 , 1 ) , created_by = self . user , title = 'The Event' , description = 'This is an event. Enjoy.' , repeat = 'MONTHLY' ) #NEWLINE# event = Event . objects . all ( ) #NEWLINE# date = datetime . datetime ( 2014 , 3 , 1 ) #NEWLINE# ( y , m , d ) = get_next_event ( event , date ) #NEWLINE# self . assertEqual ( ( y , m , d ) , ( 2014 , 3 , 1 ) ) #NEWLINE# date = datetime . datetime ( 2014 , 5 , 5 ) #NEWLINE# ( y , m , d ) = get_next_event ( self , date ) #NEWLINE# self . assertEqual ( ( y , m , d ) , ( 2014 , 5 , 28 ) )