#NEWLINE# def test_insert_d_no_value( self , coll_vdirs ) : #NEWLINE# #INDENT# 'insert a date event with no VALUE=DATE option' #NEWLINE# ( coll , vdirs ) = coll_vdirs #NEWLINE# event = Event . fromString ( event_d_no_value , calendar = cal1 , locale = aux . locale ) #NEWLINE# coll . new ( event , cal1 ) #NEWLINE# events = list ( coll . get_events_on ( aday ) ) #NEWLINE# assert ( len ( events ) == 1 ) #NEWLINE# assert ( events [ 0 ] . calendar == cal1 ) #NEWLINE# assert ( len ( list ( vdirs [ cal1 ] . list ( ) ) ) == 1 ) #NEWLINE# assert ( len ( list ( vdirs [ cal2 ] . list ( ) ) ) == 0 ) #NEWLINE# assert ( len ( list ( vdirs [ cal3 ] . list ( ) ) ) == 0 ) #NEWLINE# assert ( list ( coll . get_localized ( self . bstart_berlin , self . bend_berlin ) ) == [ ] )