summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJulian Andres Klode <jak@debian.org>2009-08-03 18:49:19 +0200
committerJulian Andres Klode <jak@debian.org>2009-08-03 18:49:19 +0200
commit68120a33ecb68da02cfb8124244be79ff5a2fad8 (patch)
tree2109b0141d111a713686d134bc280c8d77676e56 /tests
parent008812a3e9d4f786b83a78f72c115aae2faf65d4 (diff)
downloadpython-apt-68120a33ecb68da02cfb8124244be79ff5a2fad8.tar.gz
tests/test_cache_invocation.py: Adapt to new progress API.
Diffstat (limited to 'tests')
-rw-r--r--tests/test_cache_invocation.py9
1 files changed, 5 insertions, 4 deletions
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__":