#NEWLINE# def test_exclusion_date_no_limits( ) : #NEWLINE# #INDENT# pattern = Recurrence ( rdates = [ datetime ( 2014 , 1 , 1 , 0 , 0 , 0 ) , datetime ( 2014 , 1 , 2 , 0 , 0 , 0 ) ] , exdates = [ datetime ( 2014 , 1 , 2 , 0 , 0 , 0 ) ] ) #NEWLINE# occurrences = [ instance for instance in pattern . occurrences ( ) ] #NEWLINE# assert ( pattern == [ datetime ( 2014 , 1 , 1 , 0 , 0 , 0 ) ] ) #NEWLINE# assert ( 1 == pattern . count ( ) )