예제 #1
0
 def assert_expected_case_block(self, case_property, case_block_re):
     with mock.patch(
             "corehq.motech.openmrs.repeater_helpers.submit_case_blocks"
     ) as mock_submit:
         delete_case_property(DOMAIN, "CASE_ID", case_property)
         case_block = mock_submit.call_args[0][0][0]
         self.assertIsNotNone(re.match(case_block_re, case_block))
예제 #2
0
 def test_too_much_rope_error(self):
     case_property = "case_id"
     with self.assertRaises(TypeError):
         delete_case_property(DOMAIN, "CASE_ID", case_property)