def METHOD_NAME(self, is_valid=None, carrier=None):
    with patch("texting.twilio.is_phone_number_valid", return_value=is_valid) as m1:
        self.is_phone_number_valid = m1
        with patch("texting.twilio.get_carrier_info", return_value=carrier) as m2:
            self.get_carrier_info = m2
            yield