diff options
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/httpwrappers/tests.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/httpwrappers/tests.py b/tests/httpwrappers/tests.py index e6c6297898..0c81cd0341 100644 --- a/tests/httpwrappers/tests.py +++ b/tests/httpwrappers/tests.py @@ -366,6 +366,10 @@ class HttpResponseTests(unittest.TestCase): r.content = 12345 self.assertEqual(r.content, b'12345') + def test_memoryview_content(self): + r = HttpResponse(memoryview(b'memoryview')) + self.assertEqual(r.content, b'memoryview') + def test_iter_content(self): r = HttpResponse(['abc', 'def', 'ghi']) self.assertEqual(r.content, b'abcdefghi') |
