#NEWLINE# def test_build_args_with_single_status( self ) : #NEWLINE# #INDENT# parsed_args = FakeParsedArgs ( status = [ 'pending' ] ) #NEWLINE# current_time = '2014-02-21T00:00:00' #NEWLINE# start_time = '2014-02-17T00:00:00' #NEWLINE# builder = QueryArgBuilder ( current_time = parse ( current_time ) ) #NEWLINE# query = builder . build_query ( parsed_args ) #NEWLINE# self . assertEqual ( builder , { #NEWLINE# #INDENT# 'selectors' : [ { #NEWLINE# #INDENT# 'fieldName' : '@actualStartTime' , #NEWLINE# 'operator' : { #NEWLINE# #INDENT# 'type' : 'BETWEEN' , #NEWLINE# 'values' : [ start_time , current_time ] , #NEWLINE# #UNINDENT# } , #NEWLINE# #UNINDENT# } , { #NEWLINE# #INDENT# 'fieldName' : '@status' , #NEWLINE# 'operator' : { #NEWLINE# #INDENT# 'type' : 'EQ' , #NEWLINE# 'values' : [ 'PENDING' ] , #NEWLINE# #UNINDENT# } , #NEWLINE# #UNINDENT# } ] , #NEWLINE# #UNINDENT# } )