summaryrefslogtreecommitdiff
path: root/tests/old
diff options
context:
space:
mode:
authorJulian Andres Klode <jak@debian.org>2009-07-17 20:25:17 +0200
committerJulian Andres Klode <jak@debian.org>2009-07-17 20:25:17 +0200
commit3b23463156a4e119c520e0e45df09d04b815bebe (patch)
tree559b8383ed094ebe2c34d238af2ed6ad1050d34a /tests/old
parenta98a389095bce8b95fc8e70e27ade082beb77d6d (diff)
downloadpython-apt-3b23463156a4e119c520e0e45df09d04b815bebe.tar.gz
tests/test_cache_invocation.py: Move here from old.
Diffstat (limited to 'tests/old')
-rw-r--r--tests/old/getcache_mem_corruption.py24
1 files changed, 0 insertions, 24 deletions
diff --git a/tests/old/getcache_mem_corruption.py b/tests/old/getcache_mem_corruption.py
deleted file mode 100644
index c6e5ff80..00000000
--- a/tests/old/getcache_mem_corruption.py
+++ /dev/null
@@ -1,24 +0,0 @@
-#!/usr/bin/python
-import apt
-import apt_pkg
-import re
-
-import unittest
-
-class TestGetCache(unittest.TestCase):
-
- def setUp(self):
- apt_pkg.InitConfig()
- apt_pkg.InitSystem()
-
- def testWrongInvocation(self):
- # wrongly invoke GetCache() rather than GetDepCache()
- apt_cache = apt_pkg.Cache()
- self.assertRaises(ValueError, apt_pkg.Cache, apt_cache)
-
- def testProperInvocation(self):
- apt_cache = apt_pkg.Cache(apt.progress.OpTextProgress())
- apt_depcache = apt_pkg.DepCache(apt_cache)
-
-if __name__ == "__main__":
- unittest.main()