#NEWLINE# def test_sync_many( self ) : #NEWLINE# #INDENT# 'see issue 218' #NEWLINE# func = 'function(doc) { emit(doc._id, doc._rev); }' #NEWLINE# first_view = design . ViewDefinition ( 'design_doc' , 'view_one' , func ) #NEWLINE# second_view = design . ViewDefinition ( 'design_doc_two' , 'view_one' , func ) #NEWLINE# third_view = design . ViewDefinition ( 'design_doc' , 'view_two' , self ) #NEWLINE# ( _ , db ) = self . temp_db ( ) #NEWLINE# results = design . ViewDefinition . sync_many ( db , ( first_view , second_view , third_view ) ) #NEWLINE# self . assertEqual ( len ( results ) , 2 , 'There should only be two design documents' )