Skip to content
Myr

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 file

Take it

testKenneth Reitzbefore adoptionec5844a

lines 1–20why, one step back
1import requests
2import 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()20

really coming togetherKenneth Reitzbefore adoption31d10c0

lines 21–25why, one step back
21 r = s.send(r)
22 print r232425

testKenneth Reitzbefore adoptionec5844a

lines 26–29why, one step back
26
2728if __name__ == '__main__':29 unittest.main()