mirror of
https://github.com/solvercaptcha/solvecaptcha-python.git
synced 2026-07-03 14:05:39 +02:00
41 lines
835 B
Python
Executable File
41 lines
835 B
Python
Executable File
#!/usr/bin/env python3
|
|
import unittest
|
|
|
|
try:
|
|
from .abstract import AbstractTest
|
|
except ImportError:
|
|
from abstract import AbstractTest
|
|
|
|
|
|
class TextTest(AbstractTest):
|
|
def test_only_text(self):
|
|
|
|
sends = {
|
|
'method': 'post',
|
|
'textcaptcha': 'Today is monday?',
|
|
}
|
|
|
|
return self.send_return(sends,
|
|
self.solver.text,
|
|
text='Today is monday?')
|
|
|
|
def test_all_params(self):
|
|
|
|
params = {
|
|
'text': 'Today is monday?',
|
|
'lang': 'en',
|
|
}
|
|
|
|
sends = {
|
|
'method': 'post',
|
|
'textcaptcha': 'Today is monday?',
|
|
'lang': 'en',
|
|
}
|
|
|
|
return self.send_return(sends, self.solver.text, **params)
|
|
|
|
|
|
if __name__ == '__main__':
|
|
|
|
unittest.main()
|