From 0a9841d8c190618404bf999635fe168fa7d89dd8 Mon Sep 17 00:00:00 2001 From: Jason Sherman Date: Tue, 19 Nov 2019 13:21:28 -0600 Subject: [PATCH] oops: find . -type f -name "*.py" -print0 | xargs -0 sed -i "s/render()\.content\.decode(utf-8)/render().content.decode('utf-8')/g" --- TWLight/applications/tests.py | 14 +++++++------- TWLight/users/tests.py | 6 +++--- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/TWLight/applications/tests.py b/TWLight/applications/tests.py index 0a5b56e1f0..0420dd8820 100644 --- a/TWLight/applications/tests.py +++ b/TWLight/applications/tests.py @@ -1436,10 +1436,10 @@ def _base_test_object_visibility(self, url, view, queryset): # we'll have to do that before we can check for its content. # Applications should not be visible to just any coordinator - self.assertNotIn(obj.__str__(), denyResponse.render().content.decode(utf-8)) + self.assertNotIn(obj.__str__(), denyResponse.render().content.decode('utf-8')) # Applications should be visible to the designated coordinator - self.assertIn(obj.__str__(), allowResponse.render().content.decode(utf-8)) + self.assertIn(obj.__str__(), allowResponse.render().content.decode('utf-8')) def test_list_authorization(self): url = reverse("applications:list") @@ -1496,7 +1496,7 @@ def _base_test_deleted_object_visibility(self, url, view, queryset): for obj in queryset_deleted: # Deleted applications should not be visible to anyone, even the # assigned coordinator. - self.assertNotIn(obj.__str__(), response.render().content.decode(utf-8)) + self.assertNotIn(obj.__str__(), response.render().content.decode('utf-8')) def test_list_object_visibility(self): url = reverse("applications:list") @@ -2640,7 +2640,7 @@ def test_form_present_not_restricted(self): response = views.EvaluateApplicationView.as_view()( request, pk=self.application.pk ) - self.assertIn("