Commit Graph

144 Commits

Author SHA1 Message Date
Kenneth Reitz 4a5b5bc86e test cleanup 2013-01-10 00:40:17 -05:00
David Bonner 7d085b188c fix POST redirects
the redirect handling logic compares then method to upper-case strings,
so make sure the method gets upper-cased as well.

add a test to POST to /status/302 on httpbin, which fails against httpbin.org
right now.  i'm submitting a pull request over there to fix that right after
this one.  once that's accepted, the new test verifies that the fix works.
2012-12-23 00:51:26 -05:00
Eric Scrivner 916e6fcd64 Add unit-test to reproduce encoding error. 2012-12-17 12:28:08 -08:00
Kenneth Reitz 92209d9ebe 3.3 2012-12-17 08:42:47 -05:00
Kenneth Reitz 480a3821ab remove chardet 2012-12-17 08:17:19 -05:00
Kenneth Reitz 0569fe44d8 new tests! 2012-12-17 08:09:52 -05:00
Kenneth Reitz 73ed0d01f6 basic tests 2012-12-17 07:39:27 -05:00
Kenneth Reitz 82cce02120 basic test 2012-12-17 07:29:33 -05:00
Kenneth Reitz 0b9a2a1581 move tests over 2012-02-15 02:52:32 -05:00
Kenneth Reitz 2759060559 it's a start 2012-02-15 02:45:21 -05:00
Kenneth Reitz 0d8c08cd22 binary data upload bug test 2012-02-15 02:03:29 -05:00
Kenneth Reitz c0f066626e whitespace 2012-02-15 01:42:57 -05:00
Kenneth Reitz 1b6f1b091c Merge branch '400-header_expand-unicode' of https://github.com/acdha/requests into develop 2012-02-15 01:25:29 -05:00
Matt Giuca 3ae0ff3685 Added test cases for URI cleaning in the query part (Issue #429). 2012-02-15 12:00:27 +11:00
Matt Giuca c0763bb8d5 Changed test case test_path_is_not_double_encoded.
Uses the space character instead of ~ as a test (since ~ is unreserved, it
shouldn't really be encoded at all).
2012-02-14 12:49:31 +11:00
Matt Giuca 75bd9d0e94 Added test case testing URI normalisation.
Tests that percent-encoded unreserved characters get de-encoded.
2012-02-14 12:20:48 +11:00
Matt Giuca 08bc1198d3 Added test case for Issue #369.
Tests that legal reserved and unreserved characters in the path are not
percent-encoded. Currently fails.
2012-02-14 12:15:32 +11:00
Matt Giuca 329efcae6e Added test case for quoted and illegal characters in the URL.
This is a test case for issue #369.
It passes in Python 2, but fails in Python 3 (though the test suite doesn't
actually work in Python 3, it can be shown to fail with some modification).
2012-02-14 11:47:14 +11:00
Chris Adams 0a17badb21 header_expand: handle Unicode strings (closes #400) 2012-02-13 11:10:05 -05:00
David Kemp (Work) f478c34671 add failing test for unicode headers (python 2.x only) 2012-01-26 18:45:38 +00:00
David Kemp (Work) 80eafe3b63 fix problem with path being double escaped 2012-01-25 16:21:07 +00:00
Piotr Dobrogost c430b60e38 Standard tests from RequestsTestSuite run using async api 2012-01-24 21:56:59 +01:00
Kenneth Reitz a939423006 dammit, i changed again 2012-01-23 02:03:16 -05:00
Kenneth Reitz 4493acc5ee fix 26 2012-01-23 02:01:53 -05:00
Kenneth Reitz c4eb9301bb assert isinstance 2012-01-23 01:59:13 -05:00
Kenneth Reitz 57ba337e79 assert isinstance 2012-01-23 01:58:32 -05:00
Kenneth Reitz 3d542693bc no more unittest2 2012-01-23 01:56:58 -05:00
Kenneth Reitz ab916a8a8d hmm 2012-01-23 01:52:33 -05:00
Kenneth Reitz e7bcc3b332 oh snap 2012-01-23 01:32:09 -05:00
Kenneth Reitz bcfddb3d65 cleanups and stuffs 2012-01-23 00:29:50 -05:00
Kenneth Reitz b0e2e4f284 blah 2012-01-23 00:15:25 -05:00
Kenneth Reitz e84a7c7e6f whatever 2012-01-22 20:12:43 -05:00
Johannes Gorset 7647e52943 Facilitate for multiple hooks 2012-01-21 12:14:55 +01:00
Johannes Gorset b37fbf30a3 Decode response URL to a unicode string.
Fixes #182
2012-01-20 00:34:44 +01:00
Ronny Pfannschmidt 4d38790b5b even more evil, fixes my misstakes with chunked reading 2012-01-17 17:38:52 +01:00
Bryan Helmig 459a91c54f highway to the danger_mode 2012-01-05 12:50:44 -06:00
Bryan Helmig 115b51e68c add eager mode for raising errors immediately 2012-01-04 22:08:01 -06:00
Ori Livneh e1615e0f1e Make safe_mode handle exceptions more consistently 2011-12-23 16:14:46 -05:00
Ori Livneh 716d29c49c fix iteration on null responses in safe_mode 2011-12-22 21:10:43 -05:00
Ori Livneh 2c0ff95d4d Revert "Revert "Make safe_mode play nice with timeout (fixes #312)""
This reverts commit 91766548d1.
2011-12-22 17:50:43 -05:00
Ori Livneh 91766548d1 Revert "Make safe_mode play nice with timeout (fixes #312)"
This reverts commit 805c4db55413c96c5d6e0f95560119c000f660c9.
2011-12-22 17:42:57 -05:00
Ori Livneh 12f3c65e5a Make safe_mode play nice with timeout (fixes #312) 2011-12-22 16:52:29 -05:00
Ori Livneh f214b91d77 fix bug that causes iter_lines to truncate content
Currently, if the response does not terminate with a newline, iter_lines
truncates the trailing remainder.
2011-12-20 02:01:37 -05:00
Kenneth Reitz 5a3aae73ba test iter_lines 2011-12-14 10:34:31 -05:00
Kenneth Reitz 47510486ec httpbin reports multiple values now 2011-12-14 10:33:47 -05:00
Kenneth Reitz 03ddf26596 more assertive 2011-12-11 11:57:50 -05:00
Kenneth Reitz c71ac7917a Test for #303 2011-12-11 11:22:33 -05:00
Kenneth Reitz a76f4925b5 didn't mean to save that 2011-11-27 15:07:05 -05:00
Kenneth Reitz 6bb4c4ebe6 Added test for Request.sent.
#291
2011-11-27 11:24:59 -05:00
Kenneth Reitz ee36baf4f3 test tuple'd auth 2011-11-27 10:41:06 -05:00