

def test_stop(self):
    bootstrap_user(self.loc1, username='stop_person', domain=self.domain.name, phone_number='643', first_name='stop', last_name='Person', language='sw')
    with localize('sw'):
        response = unicode(STOP_CONFIRM)
    script = '\n          643 > stop\n          643 < {0}\n        '.format(response)
    contact.run_script(script)
    contact = CommCareUser.get_by_username('stop_person')
    self.assertFalse(contact.is_active)

dataset/ETHPy150Open dimagi/commcare-hq/custom/ilsgateway/tests/handlers/stop.py TestStop.test_stop/VarMisuse@70/118 `self`->`contact`