#NEWLINE# def test_occurrences_with_implicit_start_and_end( ) : #NEWLINE# #INDENT# occurrences = [ instance for instance in PATTERN . occurrences ( ) ] #NEWLINE# assert ( occurrences == [ datetime ( 2014 , 1 , 2 , 0 , 0 , 0 ) , datetime ( 2014 , 1 , 3 , 0 , 0 , 0 ) ] ) #NEWLINE# assert ( 2 == PATTERN . count ( ) )