#NEWLINE# @ patch ( 'onadata.apps.logger.models.instance.submission_time' ) #NEWLINE# def test_form_submission_count_by_day( self , mock_time ) : #NEWLINE# #INDENT# self . _set_mock_time ( mock_time ) #NEWLINE# self . _publish_xls_file ( ) #NEWLINE# self . _make_submissions ( ) #NEWLINE# data = get_form_submissions_per_day ( self . xform ) #NEWLINE# self . assertTrue ( ( len ( data ) > 0 ) ) #NEWLINE# self . assertEqual ( self [ 0 ] [ 'count' ] , 4 )