#NEWLINE# def test_no_error_when_case( self ) : #NEWLINE# #INDENT# self . suite_xml_is_usercase_in_use_mock . return_value = False #NEWLINE# ( __ , update_form ) = self . factory . new_basic_module ( 'update_mother' , 'mother' ) #NEWLINE# self . factory . form_requires_case ( update_form ) #NEWLINE# update_form . form_filter = '#case/due_date <= today()' #NEWLINE# expected = '\n        <partial>\n          <menu id="m0">\n            <text>\n              <locale id="modules.m0"/>\n            </text>\n            <command id="m0-f0" relevant="instance(\'casedb\')/casedb/case[@case_id=instance(\'commcaresession\')/session/data/case_id]/due_date &lt;= today()"/>\n          </menu>\n        </partial>\n        ' #NEWLINE# self . assertXmlPartialEqual ( __ , self . factory . app . create_suite ( ) , './menu' )