Allow advancing the MockClock's time

paul/schema_breaking_changes
Paul "LeoNerd" Evans 2014-08-13 19:17:30 +01:00
parent eef58a299e
commit a6a9b71da0
1 changed files with 4 additions and 0 deletions

View File

@ -104,6 +104,10 @@ class MockClock(object):
def time_msec(self): def time_msec(self):
return self.time() * 1000 return self.time() * 1000
# For unit testing
def advance_time(self, secs):
self.now += secs
class MemoryDataStore(object): class MemoryDataStore(object):