MCPcopy Create free account
hub / github.com/oauthlib/oauthlib / test_non_unicode_params

Method test_non_unicode_params

tests/test_common.py:116–129  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

114class RequestTest(TestCase):
115
116 def test_non_unicode_params(self):
117 r = Request(
118 b'http://a.b/path?query',
119 http_method=b'GET',
120 body=b'you=shall+pass',
121 headers={
122 b'a': b'b',
123 }
124 )
125 self.assertEqual(r.uri, 'http://a.b/path?query')
126 self.assertEqual(r.http_method, 'GET')
127 self.assertEqual(r.body, 'you=shall+pass')
128 self.assertEqual(r.decoded_body, [('you', 'shall pass')])
129 self.assertEqual(r.headers, {'a': 'b'})
130
131 def test_none_body(self):
132 r = Request(URI)

Callers

nothing calls this directly

Calls 1

RequestClass · 0.90

Tested by

no test coverage detected