Move MockClock into tests.utils so we can reüse it

This commit is contained in:
Paul "LeoNerd" Evans 2014-08-13 18:26:42 +01:00
parent baf04be5cf
commit fc778e2bce
2 changed files with 11 additions and 11 deletions

View file

@ -95,6 +95,16 @@ class MockHttpServer(HttpServer):
self.callbacks.append((method, path_pattern, callback))
class MockClock(object):
now = 1000
def time(self):
return self.now
def time_msec(self):
return self.time() * 1000
class MemoryDataStore(object):
class RoomMember(namedtuple(