mirror of
https://github.com/kennethreitz/requests.git
synced 2026-06-05 22:50:18 +00:00
29 lines
539 B
Python
29 lines
539 B
Python
import requests
|
|
import unittest
|
|
|
|
|
|
class IterationTestCase(unittest.TestCase):
|
|
|
|
def test_assertion(self):
|
|
assert 1
|
|
|
|
# def test_dzubia(self):
|
|
# s = requests.Session()
|
|
# r = requests.Request(method='GET', url='http://github.com/')
|
|
|
|
# # r = s.send(r)
|
|
|
|
def test_prepared_request(self):
|
|
s = requests.Session()
|
|
r = requests.Request(method='GET', url='http://github.com/')
|
|
r = r.prepare()
|
|
|
|
r = s.send(r)
|
|
print r
|
|
|
|
|
|
|
|
|
|
|
|
if __name__ == '__main__':
|
|
unittest.main() |