Skip to content
Myr

added new test, original test restored

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Dmitry Klimenko · committed by Dmitry Klimenko · parent 3b84be3 · Browse files · 1 file+16 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+16 added−1 removed

  • tests:+16 added−1 removed

1 file+16 added−1 removed

modified:tests/test_requests.py+16 added-1 removed
458 unmodified lines
459 def test_HTTP_200_OK_PUT(self, httpbin):460 r = requests.put(httpbin('put'))461 assert r.status_code == 200462463 def test_BASICAUTH_TUPLE_HTTP_200_OK_GET(self, httpbin):464 auth = ('user', 'pass')465 url = httpbin('basic-auth', 'user', 'pass')466467 r = requests.get(url, auth=auth)468 assert r.status_code == 200469470 r = requests.get(url)471 assert r.status_code == 401472473 s = requests.session()474 s.auth = auth475 r = s.get(url)476 assert r.status_code == 200477478 @pytest.mark.parametrize(479 'username, password', (480 ('user', 'pass'),481 (u'имя'.encode('utf-8'), u'пароль'.encode('utf-8')),482 ))468 def test_BASICAUTH_TUPLE_HTTP_200_OK_GET(self, httpbin, username, password):483 def test_set_basicauth(self, httpbin, username, password):484 auth = (username, password)485 url = httpbin('get')486487 r = requests.Request('GET', url, auth=auth)
1667 unmodified lines