示例#1
0
def test_send_sms():

    real = RestClient()
    #Normal call
    real.send_sms = Mock()
    real.send_sms(['+13233333333'], 'message', False, '+18183333333')
示例#2
0
文件: cli.py 项目: xXxn0b0d3xXx/twerp
 def __init__(self):
     self.options = None
     self.client = RestClient()
示例#3
0
def test_send_sms_server_not_found():

    real = RestClient()
    real.send_sms = Mock(side_effect=ServerNotFoundError('Server not found, dude.')).return_value = 2