diff options
| author | Michael Vogt <michael.vogt@ubuntu.com> | 2005-08-03 08:44:54 +0000 |
|---|---|---|
| committer | Michael Vogt <michael.vogt@ubuntu.com> | 2005-08-03 08:44:54 +0000 |
| commit | fe89d597e3f73c82488d17a8be8a8b8c900127ed (patch) | |
| tree | 16638137b0aa748f6e7927b6a623f7b2323c4e31 /tests | |
| parent | daf13af88e15fa27c0d911e87210e897894c5b9d (diff) | |
| download | python-apt-fe89d597e3f73c82488d17a8be8a8b8c900127ed.tar.gz | |
* API BREAK: follow PEP08 now
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/apt-test.py | 8 | ||||
| -rw-r--r-- | tests/depcache.py | 2 |
2 files changed, 5 insertions, 5 deletions
diff --git a/tests/apt-test.py b/tests/apt-test.py index 45ecad98..c44d3117 100644 --- a/tests/apt-test.py +++ b/tests/apt-test.py @@ -6,9 +6,9 @@ if __name__ == "__main__": print cache for name in cache.keys(): pkg = cache[name] - if pkg.IsUpgradable(): - pkg.MarkInstall() - for pkg in cache.GetChanges(): + if pkg.isUpgradable(): + pkg.markInstall() + for pkg in cache.getChanges(): #print pkg.Name() pass print "Broken: %s " % cache._depcache.BrokenCount @@ -19,6 +19,6 @@ if __name__ == "__main__": for name in cache.keys(): import random if random.randint(0,1) == 1: - cache[name].MarkDelete() + cache[name].markDelete() print "Broken: %s " % cache._depcache.BrokenCount print "DelCount: %s " % cache._depcache.DelCount diff --git a/tests/depcache.py b/tests/depcache.py index f5deed33..f4821b4f 100644 --- a/tests/depcache.py +++ b/tests/depcache.py @@ -30,7 +30,7 @@ def main(): if depcache.MarkedInstall(p): depcache.MarkKeep(p) if depcache.InstCount != 0: - print "Error undoing the selection for %s" % x + print "Error undoing the selection for %s (InstCount: %s)" % (x,depcache.InstCount) print "\r%i/%i=%.3f%% " % (i,all,(float(i)/float(all)*100)), print |
