diff options
| author | Julian Andres Klode <jak@debian.org> | 2009-08-03 18:49:19 +0200 |
|---|---|---|
| committer | Julian Andres Klode <jak@debian.org> | 2009-08-03 18:49:19 +0200 |
| commit | 68120a33ecb68da02cfb8124244be79ff5a2fad8 (patch) | |
| tree | 2109b0141d111a713686d134bc280c8d77676e56 | |
| parent | 008812a3e9d4f786b83a78f72c115aae2faf65d4 (diff) | |
| download | python-apt-68120a33ecb68da02cfb8124244be79ff5a2fad8.tar.gz | |
tests/test_cache_invocation.py: Adapt to new progress API.
| -rw-r--r-- | tests/test_cache_invocation.py | 9 |
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__": |
