mirror of
https://github.com/spiral-project/ihatemoney.git
synced 2025-05-06 13:01:50 +02:00
Change some assertTrue's to assertEquals
This commit is contained in:
parent
f16495a1e4
commit
e9fa30f3d4
1 changed files with 2 additions and 2 deletions
|
@ -2131,7 +2131,7 @@ class APITestCase(IhatemoneyTestCase):
|
|||
self.assertIn(
|
||||
"Project %s added" % em_surround("raclette"), resp.data.decode("utf-8"),
|
||||
)
|
||||
self.assertTrue(resp.data.decode("utf-8").count("<td> -- </td>") == 2)
|
||||
self.assertEqual(resp.data.decode("utf-8").count("<td> -- </td>"), 2)
|
||||
self.assertNotIn("127.0.0.1", resp.data.decode("utf-8"))
|
||||
|
||||
|
||||
|
@ -2264,7 +2264,7 @@ class HistoryTestCase(IhatemoneyTestCase):
|
|||
self.assertIn(
|
||||
"Project %s added" % em_surround("demo"), resp.data.decode("utf-8"),
|
||||
)
|
||||
self.assertTrue(resp.data.decode("utf-8").count("<td> -- </td>") == 1)
|
||||
self.assertEqual(resp.data.decode("utf-8").count("<td> -- </td>"), 1)
|
||||
self.assertNotIn("127.0.0.1", resp.data.decode("utf-8"))
|
||||
|
||||
def change_privacy_to(self, logging_preference):
|
||||
|
|
Loading…
Reference in a new issue