mirror of
https://github.com/solvercaptcha/solvecaptcha-python.git
synced 2026-07-03 14:05:39 +02:00
37 lines
847 B
Python
Executable File
37 lines
847 B
Python
Executable File
#!/usr/bin/env python3
|
|
|
|
import unittest
|
|
|
|
try:
|
|
from .abstract import AbstractTest
|
|
except ImportError:
|
|
from abstract import AbstractTest
|
|
|
|
class TurnstileTest(AbstractTest):
|
|
|
|
|
|
def test_all_params(self):
|
|
|
|
|
|
params = {
|
|
'sitekey' : '0x4AAAAAAAC3DHQFLr1GavRN',
|
|
'url' : 'https://www.site.com/page/',
|
|
'action' : 'foo',
|
|
'data' : 'bar'
|
|
}
|
|
|
|
sends = {
|
|
'method' : 'turnstile',
|
|
'sitekey' : '0x4AAAAAAAC3DHQFLr1GavRN',
|
|
'action' : 'foo',
|
|
'data' : 'bar',
|
|
'pageurl' : 'https://www.site.com/page/',
|
|
}
|
|
|
|
return self.send_return(sends, self.solver.turnstile, **params)
|
|
|
|
|
|
if __name__ == '__main__':
|
|
|
|
unittest.main()
|