22 lines
449 B
Python
22 lines
449 B
Python
# vim: tabstop=4 shiftwidth=4 softtabstop=4
|
|
|
|
import time
|
|
|
|
import mox
|
|
import unittest
|
|
|
|
|
|
class TestCase(unittest.TestCase):
|
|
|
|
def setUp(self):
|
|
super(TestCase, self).setUp()
|
|
self.mox = mox.Mox()
|
|
self._original_time = time.time
|
|
time.time = lambda: 1234
|
|
|
|
def tearDown(self):
|
|
time.time = self._original_time
|
|
super(TestCase, self).tearDown()
|
|
self.mox.UnsetStubs()
|
|
self.mox.VerifyAll()
|