diff options
author | Jelle van der Waa <jelle@vdwaa.nl> | 2018-12-16 17:53:19 +0100 |
---|---|---|
committer | Jelle van der Waa <jelle@vdwaa.nl> | 2019-01-21 21:19:58 +0100 |
commit | 7b755ad32afd402817cb4015f2a63433ff9325d6 (patch) | |
tree | 31261f5b71fc196bf74ab1bdb978644349aa7565 /news | |
parent | 629b12da3fdfe0937ad9a75a7548143171a3e28c (diff) | |
download | archweb-7b755ad32afd402817cb4015f2a63433ff9325d6.tar.gz archweb-7b755ad32afd402817cb4015f2a63433ff9325d6.zip |
Fix tests for Python3 by decoding byte
Diffstat (limited to 'news')
-rw-r--r-- | news/tests.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/news/tests.py b/news/tests.py index 8b06f98f..ca43e31b 100644 --- a/news/tests.py +++ b/news/tests.py @@ -77,4 +77,4 @@ class NewsCrud(TransactionTestCase): def testPreview(self): response = self.client.post('/news/preview/', {'data': '**body**'}, follow=True) self.assertEqual(response.status_code, 200) - self.assertEqual('<p><strong>body</strong></p>', response.content) + self.assertEqual('<p><strong>body</strong></p>', response.content.decode()) |