#NEWLINE# def test_options( self ) : #NEWLINE# #INDENT# options = { #NEWLINE# #INDENT# 'collation' : 'raw' , #NEWLINE# #UNINDENT# } #NEWLINE# view = design . ViewDefinition ( 'foo' , 'foo' , 'function(doc) {emit(doc._id, doc._rev)}' , options = options ) #NEWLINE# ( _ , db ) = self . temp_db ( ) #NEWLINE# view . sync ( design_doc ) #NEWLINE# design_doc = db . get ( '_design/foo' ) #NEWLINE# self . assertTrue ( ( design_doc [ 'views' ] [ 'foo' ] [ 'options' ] == options ) )