forked from 2captcha/2captcha-python
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathtest_keycaptcha.py
More file actions
executable file
·44 lines (26 loc) · 1.22 KB
/
test_keycaptcha.py
File metadata and controls
executable file
·44 lines (26 loc) · 1.22 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#!/usr/bin/env python3
import unittest
try:
from .abstract import AbstractTest
except ImportError:
from abstract import AbstractTest
class KeyCaptchaTest(AbstractTest):
def test_all_params(self):
params = {
's_s_c_user_id' : 10,
's_s_c_session_id' : '493e52c37c10c2bcdf4a00cbc9ccd1e8',
's_s_c_web_server_sign' : '9006dc725760858e4c0715b835472f22-pz-',
's_s_c_web_server_sign2' : '2ca3abe86d90c6142d5571db98af6714',
'url' : 'https://www.keycaptcha.ru/demo-magnetic/',
}
sends = {
'method' : 'keycaptcha',
's_s_c_user_id' : 10,
's_s_c_session_id' : '493e52c37c10c2bcdf4a00cbc9ccd1e8',
's_s_c_web_server_sign' : '9006dc725760858e4c0715b835472f22-pz-',
's_s_c_web_server_sign2' : '2ca3abe86d90c6142d5571db98af6714',
'pageurl' : 'https://www.keycaptcha.ru/demo-magnetic/',
}
return self.send_return(sends, self.solver.keycaptcha, **params)
if __name__ == '__main__':
unittest.main()