From 68120a33ecb68da02cfb8124244be79ff5a2fad8 Mon Sep 17 00:00:00 2001 From: Julian Andres Klode Date: Mon, 3 Aug 2009 18:49:19 +0200 Subject: tests/test_cache_invocation.py: Adapt to new progress API. --- tests/test_cache_invocation.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'tests') diff --git a/tests/test_cache_invocation.py b/tests/test_cache_invocation.py index ff86b102..4245eb50 100644 --- a/tests/test_cache_invocation.py +++ b/tests/test_cache_invocation.py @@ -2,6 +2,7 @@ import unittest import apt_pkg +import apt.progress.base class TestCache(unittest.TestCase): @@ -13,21 +14,21 @@ class TestCache(unittest.TestCase): def test_wrong_invocation(self): """cache_invocation: Test wrong invocation.""" - apt_cache = apt_pkg.Cache(apt_pkg.OpProgress()) + apt_cache = apt_pkg.Cache(apt.progress.base.OpProgress()) if apt_pkg._COMPAT_0_7: self.assertRaises(ValueError, apt_pkg.Cache, apt_cache) self.assertRaises(ValueError, apt_pkg.Cache, - apt_pkg.AcquireProgress()) + apt.progress.base.AcquireProgress()) self.assertRaises(ValueError, apt_pkg.Cache, 0) else: self.assertRaises(TypeError, apt_pkg.Cache, apt_cache) self.assertRaises(TypeError, apt_pkg.Cache, - apt_pkg.AcquireProgress()) + apt.progress.base.AcquireProgress()) self.assertRaises(TypeError, apt_pkg.Cache, 0) def test_proper_invocation(self): """cache_invocation: Test correct invocation.""" - apt_cache = apt_pkg.Cache(apt_pkg.OpProgress()) + apt_cache = apt_pkg.Cache(apt.progress.base.OpProgress()) apt_depcache = apt_pkg.DepCache(apt_cache) if __name__ == "__main__": -- cgit v1.2.3