#NEWLINE# def test_db_query_msg_id( self ) : #NEWLINE# #INDENT# 'ensure msg_id is always in db queries' #NEWLINE# found = self . client . db_query ( { #NEWLINE# #INDENT# 'msg_id' : { #NEWLINE# #INDENT# '$ne' : '' , #NEWLINE# #UNINDENT# } , #NEWLINE# #UNINDENT# } , keys = [ 'submitted' , 'completed' ] ) #NEWLINE# for rec in self : #NEWLINE# #INDENT# self . assertTrue ( ( 'msg_id' in list ( rec . keys ( ) ) ) ) #NEWLINE# #UNINDENT# found = self . client . db_query ( { #NEWLINE# #INDENT# 'msg_id' : { #NEWLINE# #INDENT# '$ne' : '' , #NEWLINE# #UNINDENT# } , #NEWLINE# #UNINDENT# } , keys = [ 'submitted' ] ) #NEWLINE# for rec in found : #NEWLINE# #INDENT# self . assertTrue ( ( 'msg_id' in list ( rec . keys ( ) ) ) ) #NEWLINE# #UNINDENT# found = self . client . db_query ( { #NEWLINE# #INDENT# 'msg_id' : { #NEWLINE# #INDENT# '$ne' : '' , #NEWLINE# #UNINDENT# } , #NEWLINE# #UNINDENT# } , keys = [ 'msg_id' ] ) #NEWLINE# for rec in found : #NEWLINE# #INDENT# self . assertTrue ( ( 'msg_id' in list ( rec . keys ( ) ) ) )