refactor: Use assert_length helper instead of assertTrue/assertEqual.

This commit is contained in:
akshatdalton
2021-07-13 17:39:37 +00:00
committed by Tim Abbott
parent 77169408f4
commit e203112fd4
7 changed files with 17 additions and 17 deletions

View File

@@ -220,7 +220,7 @@ class AnalyticsTestCase(ZulipTestCase):
else:
kwargs["realm"] = self.default_realm
self.assertEqual(table.objects.filter(**kwargs).count(), 1)
self.assertEqual(table.objects.count(), len(arg_values))
self.assert_length(arg_values, table.objects.count())
class TestProcessCountStat(AnalyticsTestCase):