#NEWLINE# def test_reimported_singletons_skipped( self ) : #NEWLINE# #INDENT# self . config [ 'import' ] [ 'singletons' ] = True #NEWLINE# self . importer . run ( ) #NEWLINE# items_added_before = dict ( ( ( item . path , item . added ) for item in self . lib . items ( ) ) ) #NEWLINE# modify_mtimes ( items_added_before . keys ( ) , offset = 10000 ) #NEWLINE# import_dir = os . path . dirname ( items_added_before . keys ( ) [ 0 ] ) #NEWLINE# self . _setup_import_session ( import_dir = import_dir , singletons = True ) #NEWLINE# self . importer . run ( ) #NEWLINE# items_added_after = dict ( ( ( item . path , item . added ) for item in self . lib . items ( ) ) ) #NEWLINE# for ( item_path , added_after ) in items_added_after . iteritems ( ) : #NEWLINE# #INDENT# self . assertEqualTimes ( items_added_before [ item_path ] , added_after , ( 'reimport modified Item.added for ' + item_path ) )