fixing up the VerifyAll() bits

This commit is contained in:
Joe Heck
2011-11-10 20:49:52 -08:00
parent 5788d215e9
commit e109d09304
2 changed files with 1 additions and 7 deletions

View File

@@ -77,5 +77,5 @@ class TestCase(unittest.TestCase):
def tearDown(self):
time.time = self._original_time
super(TestCase, self).tearDown()
self.mox.UnsetStubs()
self.mox.VerifyAll()
self.mox.UnsetStubs()

View File

@@ -69,7 +69,6 @@ class UserTests(utils.TestCase):
self.assertEqual(user.id, 3)
self.assertEqual(user.name, "gabriel")
self.assertEqual(user.email, "test@example.com")
self.mox.VerifyAll()
def test_delete(self):
resp = httplib2.Response({
@@ -83,7 +82,6 @@ class UserTests(utils.TestCase):
self.mox.ReplayAll()
self.client.users.delete(1)
self.mox.VerifyAll()
def test_get(self):
resp = httplib2.Response({
@@ -101,7 +99,6 @@ class UserTests(utils.TestCase):
self.assertTrue(isinstance(u, users.User))
self.assertEqual(u.id, 1)
self.assertEqual(u.name, 'admin')
self.mox.VerifyAll()
def test_list(self):
resp = httplib2.Response({
@@ -118,7 +115,6 @@ class UserTests(utils.TestCase):
user_list = self.client.users.list()
[self.assertTrue(isinstance(u, users.User)) for u in user_list]
self.mox.VerifyAll()
def test_update(self):
req_1 = {"user": {"password": "swordfish", "id": 2}}
@@ -160,5 +156,3 @@ class UserTests(utils.TestCase):
user = self.client.users.update_email(2, 'gabriel@example.com')
user = self.client.users.update_tenant(2, 1)
user = self.client.users.update_enabled(2, False)
self.mox.VerifyAll()