diff --git a/electionpage/tests.py b/electionpage/tests.py index 598a6fc9..3e9bf021 100644 --- a/electionpage/tests.py +++ b/electionpage/tests.py @@ -304,8 +304,9 @@ def test_are_results_certified_initializes_correctly(self): # Wait for the object to be loaded self._ensure_eventually_asserts( - ScrapableElectionPage.objects.filter(slug='cuteslug').exists - ) + lambda: self.assertTrue( + ScrapableElectionPage.objects.filter( + slug='cuteslug').exists())) # Then ensure all scrapers have areResultsCertified scrapableElectionPage = ScrapableElectionPage.objects.get(slug='cuteslug')