#NEWLINE# @ patch ( 'corehq.apps.userreports.specs.datetime' ) #NEWLINE# def test_indicators( self , datetime_mock ) : #NEWLINE# #INDENT# fake_time_now = datetime . datetime ( 2015 , 4 , 24 , 12 , 30 , 8 , 24886 ) #NEWLINE# datetime_mock . utcnow . return_value = fake_time_now #NEWLINE# ( sample_doc , expected_indicators ) = get_sample_doc_and_indicators ( fake_time_now ) #NEWLINE# [ results ] = self . config . get_all_values ( sample_doc ) #NEWLINE# for result in results : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# self . assertEqual ( expected_indicators [ result . column . id ] , sample_doc . value ) #NEWLINE# #UNINDENT# except AssertionError : #NEWLINE# #INDENT# self . assertEqual ( str ( expected_indicators [ result . column . id ] ) , result . value )