Fix for python3

This commit is contained in:
Nick Hall 2014-05-15 17:46:10 +01:00
parent 004c2044c7
commit a02f76c97f

View File

@ -153,8 +153,6 @@ class TestUser_quiet(unittest.TestCase):
@unittest.skipUnless(MOCKING, "Requires unittest.mock to run")
class TestUser_progress(unittest.TestCase):
_progress_begin_step_end = \
TestUser_quiet.test_progress_can_begin_step_end.__func__
def setUp(self):
self.user = user.User()
@ -186,5 +184,11 @@ class TestUser_progress(unittest.TestCase):
pass
self.assertTrue(MockEP.called)
def _progress_begin_step_end(self):
self.user.begin_progress("Foo", "Bar", 0)
for i in range(10):
self.user.step_progress()
self.user.end_progress()
if __name__ == "__main__":
unittest.main()