15
15
class TestSmsApi (TestYunpianApi ):
16
16
'''Test SmsApi'''
17
17
18
- def _test_single_send (self ):
18
+ def test_single_send (self ):
19
19
clnt = self ._clnt ;
20
20
21
21
param = {MOBILE :'18616020000' , TEXT :'【云片网】您的验证码是1234' }
22
22
r = clnt .sms ().single_send (param )
23
23
self .show (r )
24
24
25
- def _test_batch_send (self ):
25
+ def test_batch_send (self ):
26
26
clnt = self ._clnt
27
27
28
28
param = {MOBILE :'18616020000' , TEXT :'【云片网】您的验证码是1234' }
29
29
r = clnt .sms ().batch_send (param )
30
30
self .show (r )
31
31
32
- def _test_multi_send (self ):
32
+ def test_multi_send (self ):
33
33
clnt = self ._clnt
34
34
param = {MOBILE : '18616020610,18616020611' ,
35
35
TEXT : clnt .urlEncodeAndJoin (['【哈哈哈】您的验证码,是1234' , '【哈哈哈】您的验证码是1234' ])}
36
36
r = clnt .sms ().multi_send (param )
37
37
self .show (r )
38
38
39
39
# deprecated
40
- def _test_tpl_single_send (self ):
40
+ def test_tpl_single_send (self ):
41
41
clnt = self ._clnt
42
42
43
43
param = {MOBILE :'18616020000' , TPL_ID :'1' , TPL_VALUE :'#company#=云片网' }
44
44
r = clnt .sms ().tpl_single_send (param )
45
45
self .show (r )
46
46
47
47
# deprecated
48
- def _test_tpl_batch_send (self ):
48
+ def test_tpl_batch_send (self ):
49
49
clnt = self ._clnt ;
50
50
51
51
param = {MOBILE :'18616020000' , TPL_ID :'1' , TPL_VALUE :'#company#=云片网' }
52
52
r = clnt .sms ().tpl_batch_send (param )
53
53
self .show (r )
54
54
55
- def _test_pull_status (self ):
55
+ def test_pull_status (self ):
56
56
clnt = self ._clnt ;
57
57
58
58
param = {PAGE_SIZE :'20' }
@@ -63,7 +63,7 @@ def _test_pull_status(self):
63
63
r = clnt .sms ().version (VERSION_V1 ).pull_status (param )
64
64
self .show (r )
65
65
66
- def _test_pull_reply (self ):
66
+ def test_pull_reply (self ):
67
67
clnt = self ._clnt ;
68
68
69
69
param = {PAGE_SIZE :'20' }
@@ -74,7 +74,7 @@ def _test_pull_reply(self):
74
74
r = clnt .sms ().version (VERSION_V1 ).pull_reply (param )
75
75
self .show (r )
76
76
77
- def _test_get_record (self ):
77
+ def test_get_record (self ):
78
78
clnt = self ._clnt ;
79
79
80
80
param = {START_TIME : '2013-08-11 00:00:00' , END_TIME : '2016-12-05 00:00:00' , PAGE_NUM : '1' ,
@@ -86,7 +86,7 @@ def _test_get_record(self):
86
86
r = clnt .sms ().version (VERSION_V1 ).get_record (param )
87
87
self .show (r )
88
88
89
- def _test_get_black_word (self ):
89
+ def test_get_black_word (self ):
90
90
clnt = self ._clnt
91
91
92
92
param = {TEXT : '高利贷,发票' }
@@ -99,14 +99,14 @@ def _test_get_black_word(self):
99
99
100
100
101
101
# deprecated
102
- def _test_send (self ):
102
+ def test_send (self ):
103
103
clnt = self ._clnt
104
104
105
105
param = {MOBILE :'18616020000' , TEXT : '【云片网】您的验证码是1234' }
106
106
r = clnt .sms ().version (VERSION_V1 ).send (param )
107
107
self .show (r )
108
108
109
- def _test_get_reply (self ):
109
+ def test_get_reply (self ):
110
110
clnt = self ._clnt
111
111
112
112
param = {START_TIME : '2013-08-11 00:00:00' , END_TIME : '2016-12-05 00:00:00' , PAGE_NUM : '1' ,
@@ -119,14 +119,14 @@ def _test_get_reply(self):
119
119
self .show (r )
120
120
121
121
# deprecated
122
- def _test_tpl_send (self ):
122
+ def test_tpl_send (self ):
123
123
clnt = self ._clnt
124
124
125
125
param = {MOBILE : '18616020000' , TPL_ID : '1' , TPL_VALUE :'#company#=云片网' }
126
126
r = clnt .sms ().version (VERSION_V1 ).tpl_send (param )
127
127
self .show (r )
128
128
129
- def _test_count (self ):
129
+ def test_count (self ):
130
130
clnt = self ._clnt ;
131
131
132
132
param = {START_TIME : '2013-08-11 00:00:00' , END_TIME :'2016-12-05 00:00:00' , PAGE_NUM : '1' ,
0 commit comments