summaryrefslogtreecommitdiff
path: root/archaeological_finds
diff options
context:
space:
mode:
Diffstat (limited to 'archaeological_finds')
-rw-r--r--archaeological_finds/tests.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/archaeological_finds/tests.py b/archaeological_finds/tests.py
index f79ec7dd2..19b104b62 100644
--- a/archaeological_finds/tests.py
+++ b/archaeological_finds/tests.py
@@ -1985,7 +1985,7 @@ class FindHistoryTest(FindInit, TestCase):
c.login(username=self.username, password=self.password)
response = c.get(reverse("show-find", kwargs={"pk": find.pk}))
self.assertEqual(response.status_code, 200)
- self.assertIn(b'class="card sheet"', response.content)
+ self.assertIn('class="card sheet"', response.content.decode("utf-8"))
content = response.content.decode("utf-8")
self.assertNotIn(Period.objects.get(txt_idx="neolithic").label, content)
self.assertNotIn("5001", content)
@@ -2003,7 +2003,7 @@ class FindHistoryTest(FindInit, TestCase):
content,
msg="ceramic not found in historical sheet",
)
- self.assertIn("5001", content, msg="5001 not found in historical " "sheet")
+ self.assertIn("5001", content, msg="5001 not found in historical sheet")
self.assertIn(Period.objects.get(txt_idx="neolithic").label, content)
def test_m2m_history_restore(self):