From a6a9b71da0f68c948a9cfd6f5e552a70068fb4e3 Mon Sep 17 00:00:00 2001 From: "Paul \"LeoNerd\" Evans" Date: Wed, 13 Aug 2014 19:17:30 +0100 Subject: Allow advancing the MockClock's time --- tests/utils.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'tests') diff --git a/tests/utils.py b/tests/utils.py index e397712d82..20a63316fd 100644 --- a/tests/utils.py +++ b/tests/utils.py @@ -104,6 +104,10 @@ class MockClock(object): def time_msec(self): return self.time() * 1000 + # For unit testing + def advance_time(self, secs): + self.now += secs + class MemoryDataStore(object): -- cgit 1.4.1