diff options
author | Jonathan Lange <jml@mumak.net> | 2015-12-16 10:48:28 +0000 |
---|---|---|
committer | Jonathan Lange <jml@mumak.net> | 2015-12-16 10:48:28 +0000 |
commit | c7b4fe3b6a0d699a41829bf4ebdfd1e9639f6f42 (patch) | |
tree | 8f9d193931fa3ae4cc30fbfa510bbbc877d93b03 | |
parent | 506f809dd6876afade6d453ec6ce53422418b6b7 (diff) | |
download | testtools-c7b4fe3b6a0d699a41829bf4ebdfd1e9639f6f42.tar.gz |
Test non-ASCII data
-rw-r--r-- | testtools/tests/test_content.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/testtools/tests/test_content.py b/testtools/tests/test_content.py index e3dda4a..c8a2d8d 100644 --- a/testtools/tests/test_content.py +++ b/testtools/tests/test_content.py @@ -215,7 +215,7 @@ class TestContent(TestCase): def test_json_content_as_text(self): # JSON content can be converted to text, even though it's not strictly # text content. - data = {'foo': 'bar'} + data = {_u('foo'): _u('bar'), _u('qux'): _u("A\xA7")} content = Content(JSON, lambda: [json.dumps(data).encode('utf8')]) self.assertThat(json.loads(content.as_text()), Equals(data)) |