from time import time


class MockTime:
    time_passed = 0.0

    def time(self):
        return time() + self.time_passed

    def sleep(self, seconds):
        self.time_passed += seconds

mock_time = MockTime()

@@ -1,158 +1,456 @@
-from time import time%0A%0A%0Aclass MockTime:%0A    time_passed = 0.0%0A%0A    def time(self):%0A        return time() + self.time_passed%0A%0A    def sleep(self, seconds):
+%22%22%22utility functions for testing logintokens app%0A%0A%22%22%22%0Afrom time import time%0A%0A%0Aclass MockTime:%0A    %22%22%22Provide mocked time and sleep methods to simulate the passage of time.%0A%0A    %22%22%22%0A    time_passed = 0.0%0A%0A    def time(self):%0A        %22%22%22Return current time with a consistent offset.%0A%0A        %22%22%22%0A        return time() + self.time_passed%0A%0A    def sleep(self, seconds):%0A        %22%22%22Increase the offset to make it seem as though time has passed.%0A%0A        %22%22%22
 %0A   

Add docstrings to mocked time methods