mirror of
https://github.com/gristlabs/grist-core.git
synced 2026-03-02 04:09:24 +00:00
REQUEST with unknown and undetectable encoding (#600)
This commit is contained in:
@@ -73,6 +73,13 @@ class TestResponse(unittest.TestCase):
|
||||
self.assertEqual(r.content, content)
|
||||
self.assertEqual(r.text, text)
|
||||
|
||||
def test_unknown_undetectable_encoding(self):
|
||||
content = b''
|
||||
r = Response(content, 200, "OK", {}, encoding=None)
|
||||
|
||||
# Not knowing the encoding should not break text
|
||||
self.assertEqual(r.text, "")
|
||||
|
||||
|
||||
class TestRequestsPostInterface(unittest.TestCase):
|
||||
def test_no_post_args(self):
|
||||
|
||||
Reference in New Issue
Block a user