test_iteration.py
This file
Path
test_iteration.py
29 lines · 539 bytes · Python
Last changed by
really coming togetherKenneth Reitzbefore adoption31d10c0
History of this fileTake it
testKenneth Reitzbefore adoptionec5844a
lines 1–20why, one step back1import requests2import unittest345class IterationTestCase(unittest.TestCase):67 def test_assertion(self):8 assert 1910 # def test_dzubia(self):11 # s = requests.Session()12 # r = requests.Request(method='GET', url='http://github.com/')1314 # # r = s.send(r)1516 def test_prepared_request(self):17 s = requests.Session()18 r = requests.Request(method='GET', url='http://github.com/')19 r = r.prepare()20really coming togetherKenneth Reitzbefore adoption31d10c0
lines 21–25why, one step back21 r = s.send(r)22 print r232425testKenneth Reitzbefore adoptionec5844a
lines 26–29why, one step back262728if __name__ == '__main__':29 unittest.main()