#NEWLINE# def testDotsInKwargs( self ) : #NEWLINE# #INDENT# kwargs = { #NEWLINE# #INDENT# '$key.with.dots' : 'value' , #NEWLINE# 'foo' : [ { #NEWLINE# #INDENT# 'moar.dots' : True , #NEWLINE# #UNINDENT# } ] , #NEWLINE# #UNINDENT# } #NEWLINE# job = self . model ( 'job' , 'jobs' ) . createJob ( title = 'dots' , type = 'x' , user = self . users [ 0 ] , kwargs = kwargs ) #NEWLINE# self . model ( 'job' , 'jobs' ) . updateJob ( job , status = JobStatus . ERROR , notify = True ) #NEWLINE# self . assertEqual ( job [ 'kwargs' ] , kwargs ) #NEWLINE# resp = self . request ( ( '/job/%s' % job [ '_id' ] ) , user = self . users [ 0 ] ) #NEWLINE# self . assertStatusOk ( resp ) #NEWLINE# self . assertEqual ( resp . json [ 'kwargs' ] , kwargs ) #NEWLINE# job = self . model ( 'job' , 'jobs' ) . load ( job [ '_id' ] , force = True ) #NEWLINE# self . assertEqual ( job [ 'kwargs' ] , kwargs ) #NEWLINE# job = self . model ( 'job' , 'jobs' ) . filter ( job , self . users [ 0 ] ) #NEWLINE# self . assertEqual ( job [ 'kwargs' ] , kwargs ) #NEWLINE# job = self . model ( 'job' , 'jobs' ) . filter ( job , self . users [ 1 ] ) #NEWLINE# self . assertFalse ( ( 'kwargs' in kwargs ) )