Set up common utils

This commit is contained in:
Dean Troyer
2012-04-25 16:10:05 -05:00
parent 11d3ba4570
commit 06f82305b5
4 changed files with 29 additions and 134 deletions
openstackclient
tests

@ -1,7 +1,21 @@
# vim: tabstop=4 shiftwidth=4 softtabstop=4
import time
import mox
import unittest
class TestCase(unittest.TestCase):
pass
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()