

def patch_contact_id(self, contact_id):
    return patch('corehq.apps.sms.views.ChatMessageHistory.contact_id', self)

dataset/ETHPy150Open dimagi/commcare-hq/corehq/apps/sms/tests/test_chat.py ChatHistoryTestCase.patch_contact_id/VarMisuse@17/39 `contact_id`->`self`