From a0ecde5eca76ceb2155ab4322c678ef2b41a7965 Mon Sep 17 00:00:00 2001 From: Michael Vogt Date: Fri, 27 May 2005 12:36:25 +0000 Subject: * basic tests of the native python apt interface --- tests/apt-test.py | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 tests/apt-test.py diff --git a/tests/apt-test.py b/tests/apt-test.py new file mode 100644 index 00000000..714101d9 --- /dev/null +++ b/tests/apt-test.py @@ -0,0 +1,10 @@ +import apt + +if __name__ == "__main__": + progress = apt.progress.OpTextProgress() + cache = apt.Cache(progress) + print "Packages count: %s" % len(cache.keys()) + for key in cache.keys(): + p = cache[key] + if p == None or p.Name() == None or p.Name == "" or p._pkg == None: + print "Something strange is going on" -- cgit v1.2.3