diff --git a/search/tests/test_timer.py b/search/tests/test_timer.py index de0b68d3..f74a7488 100644 --- a/search/tests/test_timer.py +++ b/search/tests/test_timer.py @@ -1,17 +1,23 @@ -import datetime +# pylint: disable=too-few-public-methods +# pylint: disable=too-many-ancestors +""" Tests for timing functionality """ +import datetime from django.test import TestCase from search.utils import Timer class TimerTest(TestCase): + """ + Timer Test Case + """ def test_start_timer(self): timer = Timer() timer.start() timer.stop() - self.assertTrue(timer.start_time is not None) - self.assertTrue(timer.end_time is not None) + self.assertIsNotNone(timer.start_time) + self.assertIsNotNone(timer.end_time) def test_elapsed_time(self): # pylint: disable=protected-access