#NEWLINE# def test_build_args_with_all_values_set( self ) : #NEWLINE# #INDENT# parsed_args = FakeParsedArgs ( start_interval = [ '2014-02-01T00:00:00' , '2014-02-04T00:00:00' ] , schedule_interval = [ '2014-02-05T00:00:00' , '2014-02-09T00:00:00' ] , status = [ 'pending' , 'waiting_on_dependencies' ] ) #NEWLINE# builder = QueryArgBuilder ( ) #NEWLINE# query = builder . build_query ( parsed_args ) #NEWLINE# self . assertEqual ( query , { #NEWLINE# #INDENT# 'selectors' : [ { #NEWLINE# #INDENT# 'fieldName' : '@actualStartTime' , #NEWLINE# 'operator' : { #NEWLINE# #INDENT# 'type' : 'BETWEEN' , #NEWLINE# 'values' : [ '2014-02-01T00:00:00' , '2014-02-04T00:00:00' ] , #NEWLINE# #UNINDENT# } , #NEWLINE# #UNINDENT# } , { #NEWLINE# #INDENT# 'fieldName' : '@scheduledStartTime' , #NEWLINE# 'operator' : { #NEWLINE# #INDENT# 'type' : 'BETWEEN' , #NEWLINE# 'values' : [ '2014-02-05T00:00:00' , '2014-02-09T00:00:00' ] , #NEWLINE# #UNINDENT# } , #NEWLINE# #UNINDENT# } , { #NEWLINE# #INDENT# 'fieldName' : '@status' , #NEWLINE# 'operator' : { #NEWLINE# #INDENT# 'type' : 'EQ' , #NEWLINE# 'values' : [ 'PENDING' , 'WAITING_ON_DEPENDENCIES' ] , #NEWLINE# #UNINDENT# } , #NEWLINE# #UNINDENT# } ] , #NEWLINE# #UNINDENT# } )