def test_02(self): """ Test Case 02: Test result of two subsequent calls of :py:func:`~magrathea.utils.timer.counter`. Test is passed if result of second call is greater than result of first call. """ r1 = counter() r2 = counter() self.assertGreater(r2, r1)
def test_01(self): """ Test Case 01: Test return type of :py:func:`~magrathea.utils.timer.counter`. Test is passed if returned value is of type float. """ self.assertIsInstance(counter(), float)