def test_send_sms(self):
        with mock.patch('custom.ewsghana.alerts.alert.send_sms') as send:
            self.notification.send()
            self.assertTrue(send.called)
            args, kwargs = send.call_args
            domain, user, phone_number, text = args

            self.assertEqual(self.notification.message, text)
            self.assertEqual(phone_number, '+4444')
Successful SMS sent.
dataset/ETHPy150Open dimagi/commcare-hq/custom/ewsghana/tests/test_notifications.py/SMSNotificationTestCase.test_send_sms