Move from unittest2 to testtools · johnsom/python-openstackclient@fe3123b · GitHub
Skip to content

Commit fe3123b

Browse files
author
Dean Troyer
committed
Move from unittest2 to testtools
Change-Id: I475a082af0660e0ee0e86ca4cd1bf0e2d711e3ed
1 parent 5418959 commit fe3123b

3 files changed

Lines changed: 25 additions & 17 deletions

File tree

tests/test_shell.py

Lines changed: 19 additions & 12 deletions

tests/utils.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
import time
44

55
import mox
6-
import unittest2
6+
import testtools
77

88

9-
class TestCase(unittest2.TestCase):
9+
class TestCase(testtools.TestCase):
1010

1111
def setUp(self):
1212
super(TestCase, self).setUp()
@@ -16,6 +16,6 @@ def setUp(self):
1616

1717
def tearDown(self):
1818
time.time = self._original_time
19-
super(TestCase, self).tearDown()
2019
self.mox.UnsetStubs()
2120
self.mox.VerifyAll()
21+
super(TestCase, self).tearDown()

tools/test-requires

Lines changed: 3 additions & 2 deletions

0 commit comments

Comments
 (0)