def test(self): form = make_form_from_case_blocks([ElementTree.fromstring(CASE_BLOCK)]) result = process_xform_xml(self.domain, form) with result.get_locked_forms() as xforms: with self.interface.casedb_cache(domain=self.domain) as case_db: with self.assertRaises(PhoneDateValueError): process_cases_with_casedb(xforms, case_db)
def test(self): form = make_form_from_case_blocks([ElementTree.fromstring(CASE_BLOCK)]) lock_manager = process_xform(form, domain=self.domain) with lock_manager as xforms: with CaseDbCache(domain=self.domain) as case_db: with self.assertRaises(PhoneDateValueError): process_cases_with_casedb(xforms, case_db)
def test(self): form = make_form_from_case_blocks([ElementTree.fromstring(CASE_BLOCK)]) lock_manager = process_xform(form, domain=self.domain) with lock_manager as xforms: with CaseDbCache(domain=self.domain) as case_db: with self.assertRaises(PhoneDateValueError): process_cases_with_casedb(xforms, case_db)
def test(self): form = make_form_from_case_blocks([ElementTree.fromstring(CASE_BLOCK)]) result = process_xform_xml(self.domain, form) with result.get_locked_forms() as xforms: with self.interface.casedb_cache(domain=self.domain) as case_db: with self.assertRaises(PhoneDateValueError): process_cases_with_casedb(xforms, case_db)