#NEWLINE# def test_remove_document( self ) : #NEWLINE# #INDENT# SimpleQuery . remove_by_example ( collection = self . test_1_col , example_data = { #NEWLINE# #INDENT# 'bla' : 'xxx' , #NEWLINE# #UNINDENT# } ) #NEWLINE# all_docs = self . test_1_col . documents ( ) #NEWLINE# self . assertEqual ( len ( all_docs ) , 1 ) #NEWLINE# doc = all_docs [ 0 ] #NEWLINE# self . assertDocumentsEqual ( doc , self . col1_doc1 )