#NEWLINE# def test_error_when_no_case( self ) : #NEWLINE# #INDENT# self . suite_xml_is_usercase_in_use_mock . return_value = True #NEWLINE# ( __ , reg_form ) = self . factory . new_basic_module ( 'reg_module' , 'mother' ) #NEWLINE# self . factory . form_opens_case ( reg_form ) #NEWLINE# reg_form . form_filter = './due_date <= today()' #NEWLINE# with self . assertRaises ( CaseXPathValidationError ) : #NEWLINE# #INDENT# self . factory . app . create_suite ( )