summaryrefslogtreecommitdiffstats
path: root/news
diff options
context:
space:
mode:
authorJelle van der Waa <jelle@vdwaa.nl>2018-12-16 17:53:19 +0100
committerJelle van der Waa <jelle@vdwaa.nl>2019-01-21 21:19:58 +0100
commit7b755ad32afd402817cb4015f2a63433ff9325d6 (patch)
tree31261f5b71fc196bf74ab1bdb978644349aa7565 /news
parent629b12da3fdfe0937ad9a75a7548143171a3e28c (diff)
downloadarchweb-7b755ad32afd402817cb4015f2a63433ff9325d6.tar.gz
archweb-7b755ad32afd402817cb4015f2a63433ff9325d6.zip
Fix tests for Python3 by decoding byte
Diffstat (limited to 'news')
-rw-r--r--news/tests.py2
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())