summaryrefslogtreecommitdiff
path: root/tests/test_aptsources.py
diff options
context:
space:
mode:
authorJulian Andres Klode <jak@debian.org>2009-07-23 15:09:08 +0200
committerJulian Andres Klode <jak@debian.org>2009-07-23 15:09:08 +0200
commit4ae2f454115f3ab758ef9bf0b1f31e5b04ac934a (patch)
tree54e50e15d738bfb82d1f5c81eb44e36b17fb9ac6 /tests/test_aptsources.py
parent544f14e0f2fb70b5a1f30786a93023a42d88290d (diff)
downloadpython-apt-4ae2f454115f3ab758ef9bf0b1f31e5b04ac934a.tar.gz
tests: Prefix all docstring with the name of the file.
Diffstat (limited to 'tests/test_aptsources.py')
-rw-r--r--tests/test_aptsources.py11
1 files changed, 6 insertions, 5 deletions
diff --git a/tests/test_aptsources.py b/tests/test_aptsources.py
index e5cd1f5a..0ae05bf3 100644
--- a/tests/test_aptsources.py
+++ b/tests/test_aptsources.py
@@ -18,7 +18,7 @@ class TestAptSources(unittest.TestCase):
apt_pkg.config.set("Dir::Etc::sourceparts", "/xxx")
def testIsMirror(self):
- """Test mirror detection."""
+ """aptsources: Test mirror detection."""
yes = aptsources.sourceslist.is_mirror("http://archive.ubuntu.com",
"http://de.archive.ubuntu.com")
no = aptsources.sourceslist.is_mirror("http://archive.ubuntu.com",
@@ -27,7 +27,7 @@ class TestAptSources(unittest.TestCase):
self.assertFalse(no)
def testSourcesListReading(self):
- """Test sources.list parsing."""
+ """aptsources: Test sources.list parsing."""
apt_pkg.config.set("Dir::Etc::sourcelist", "data/aptsources/"
"sources.list")
sources = aptsources.sourceslist.SourcesList()
@@ -38,7 +38,7 @@ class TestAptSources(unittest.TestCase):
self.assertEqual(len(sources.list), 6)
def testSourcesListAdding(self):
- """Test additions to sources.list"""
+ """aptsources: Test additions to sources.list"""
apt_pkg.config.set("Dir::Etc::sourcelist", "data/aptsources/"
"sources.list")
sources = aptsources.sourceslist.SourcesList()
@@ -88,7 +88,7 @@ class TestAptSources(unittest.TestCase):
self.assertEqual(found_universe, 1)
def testMatcher(self):
- """Test matcher (detection of what is what in sources.list)"""
+ """aptsources: Test matcher"""
apt_pkg.config.set("Dir::Etc::sourcelist", "data/aptsources/"
"sources.list.testDistribution")
sources = aptsources.sourceslist.SourcesList()
@@ -101,7 +101,7 @@ class TestAptSources(unittest.TestCase):
self.fail("source entry '%s' has no matcher" % s)
def testDistribution(self):
- """Test distribution detection."""
+ """aptsources: Test distribution detection."""
apt_pkg.config.set("Dir::Etc::sourcelist", "data/aptsources/"
"sources.list.testDistribution")
sources = aptsources.sourceslist.SourcesList()
@@ -152,4 +152,5 @@ class TestAptSources(unittest.TestCase):
if __name__ == "__main__":
+ os.chdir(os.path.dirname(__file__))
unittest.main()