def testSignal(self):
        start_dot = len(XFormInstance.view(
            'all_forms/view',
            startkey=['submission xmlns', self.domain.name, XMLNS_DOTS_FORM],
            endkey=['submission xmlns', self.domain.name, XMLNS_DOTS_FORM, {}],
            reduce=False
        ).all())
        start_update = len(XFormInstance.view(
            'all_forms/view',
            startkey=['submission xmlns', self.domain.name, XMLNS_PATIENT_UPDATE_DOT],
            endkey=['submission xmlns', self.domain.name, XMLNS_PATIENT_UPDATE_DOT, {}],
            reduce=False
        ).all())

        submit_xform(self.submit_url, self.domain.name, self.pillbox_form)
        submitted = XFormInstance.get(PILLBOX_ID)
        self.assertTrue(hasattr(submitted, PACT_DOTS_DATA_PROPERTY))

        dot_count = XFormInstance.view(
            'all_forms/view',
            startkey=['submission xmlns', self.domain.name, XMLNS_DOTS_FORM],
            endkey=['submission xmlns', self.domain.name, XMLNS_DOTS_FORM, {}],
        ).all()[0]['value']
        update_count = XFormInstance.view(
            'all_forms/view',
            startkey=['submission xmlns', self.domain.name, XMLNS_PATIENT_UPDATE_DOT],
            endkey=['submission xmlns', self.domain.name, XMLNS_PATIENT_UPDATE_DOT, {}],
        ).all()[0]['value']

        self.assertEquals(dot_count, update_count)
        self.assertEquals(start_dot+start_update + 2, dot_count + update_count)

        casedoc = CommCareCase.get(CASE_ID)
        self.assertEqual(casedoc.xform_ids[-2], PILLBOX_ID)
        computed_submit = XFormInstance.get(casedoc.xform_ids[-1])
        self.assertEqual(computed_submit.xmlns, XMLNS_PATIENT_UPDATE_DOT)
Return the back pair of the structure
dataset/ETHPy150Open dimagi/commcare-hq/custom/_legacy/pact/tests/dot_submission.py/dotsSubmissionTests.testSignal--crossover with--dataset/ETHPy150Open lsbardel/python-stdnet/stdnet/apps/columnts/models.py/ColumnTS.back