summaryrefslogtreecommitdiff
path: root/tests/test_aptsources.py
diff options
context:
space:
mode:
authorMichael Vogt <mvo@ubuntu.com>2014-06-30 11:21:36 +0200
committerMichael Vogt <mvo@debian.org>2014-06-30 11:22:28 +0200
commit9db885ce4fb06f8e154b97cd6cf4e0f09a241f54 (patch)
tree800048e31e28f866927f74d7ff9947c6a0af8bb6 /tests/test_aptsources.py
parent1fd7279ca39c22f9a688e404b27bc1f3aef30cc7 (diff)
downloadpython-apt-9db885ce4fb06f8e154b97cd6cf4e0f09a241f54.tar.gz
make pep8 happy (again)
Diffstat (limited to 'tests/test_aptsources.py')
-rw-r--r--tests/test_aptsources.py38
1 files changed, 19 insertions, 19 deletions
diff --git a/tests/test_aptsources.py b/tests/test_aptsources.py
index f955205f..f174bd41 100644
--- a/tests/test_aptsources.py
+++ b/tests/test_aptsources.py
@@ -77,9 +77,9 @@ class TestAptSources(unittest.TestCase):
found = False
for entry in sources:
if (entry.type == "deb" and
- entry.uri == "http://de.archive.ubuntu.com/ubuntu/" and
- entry.dist == "edgy" and
- "multiverse" in entry.comps):
+ entry.uri == "http://de.archive.ubuntu.com/ubuntu/" and
+ entry.dist == "edgy" and
+ "multiverse" in entry.comps):
found = True
self.assertTrue(found)
@@ -90,10 +90,10 @@ class TestAptSources(unittest.TestCase):
found = False
for entry in sources:
if (entry.type == "deb" and
- entry.uri == "http://de.archive.ubuntu.com/ubuntu/" and
- entry.dist == "natty" and
- entry.architectures == [] and
- "multiverse" in entry.comps):
+ entry.uri == "http://de.archive.ubuntu.com/ubuntu/" and
+ entry.dist == "natty" and
+ entry.architectures == [] and
+ "multiverse" in entry.comps):
found = True
self.assertTrue(found)
@@ -104,10 +104,10 @@ class TestAptSources(unittest.TestCase):
found = False
for entry in sources:
if (entry.type == "deb" and
- entry.uri == "http://de.archive.ubuntu.com/ubuntu/" and
- entry.dist == "natty" and
- set(entry.architectures) == set(["amd64", "i386"]) and
- set(entry.comps) == set(["main", "universe"])):
+ entry.uri == "http://de.archive.ubuntu.com/ubuntu/" and
+ entry.dist == "natty" and
+ set(entry.architectures) == set(["amd64", "i386"]) and
+ set(entry.comps) == set(["main", "universe"])):
found = True
self.assertTrue(found)
# test to add something new: multiverse *and*
@@ -120,8 +120,8 @@ class TestAptSources(unittest.TestCase):
found_something = 0
for entry in sources:
if (entry.type == "deb" and
- entry.uri == "http://de.archive.ubuntu.com/ubuntu/" and
- entry.dist == "edgy"):
+ entry.uri == "http://de.archive.ubuntu.com/ubuntu/" and
+ entry.dist == "edgy"):
for c in entry.comps:
if c == "universe":
found_universe += 1
@@ -219,11 +219,11 @@ class TestAptSources(unittest.TestCase):
found = {}
for entry in sources:
if (entry.type == "deb" and
- entry.uri == "http://de.archive.ubuntu.com/ubuntu/" and
- "edgy" in entry.dist):
+ entry.uri == "http://de.archive.ubuntu.com/ubuntu/" and
+ "edgy" in entry.dist):
for c in entry.comps:
if c == comp:
- if not entry.dist in found:
+ if entry.dist not in found:
found[entry.dist] = 0
found[entry.dist] += 1
#print "".join([s.str() for s in sources])
@@ -236,11 +236,11 @@ class TestAptSources(unittest.TestCase):
found = {}
for entry in sources:
if (entry.type == "deb" and
- entry.template and
- entry.template.name == "edgy"):
+ entry.template and
+ entry.template.name == "edgy"):
for c in entry.comps:
if c == comp:
- if not entry.dist in found.has_key:
+ if entry.dist not in found.has_key:
found[entry.dist] = 0
found[entry.dist] += 1
#print "".join([s.str() for s in sources])