summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTill Maas <opensource@till.name>2014-05-22 17:43:40 +0200
committerTill Maas <opensource@till.name>2014-05-22 17:43:40 +0200
commit00a7634802af669849e02580fd4220a80ad44fe9 (patch)
treed82e624e6400d46a063f77af84bbae0f1bcf687b
parentd8e06a7e0829c84aa7c773252030b73132df8500 (diff)
downloadcnucnu-00a7634802af669849e02580fd4220a80ad44fe9.zip
cnucnu-00a7634802af669849e02580fd4220a80ad44fe9.tar.gz
cnucnu-00a7634802af669849e02580fd4220a80ad44fe9.tar.xz
PEP8 package_list_test.py
-rwxr-xr-xcnucnu/tests/package_list_test.py15
1 files changed, 10 insertions, 5 deletions
diff --git a/cnucnu/tests/package_list_test.py b/cnucnu/tests/package_list_test.py
index 2f95e98..48093f6 100755
--- a/cnucnu/tests/package_list_test.py
+++ b/cnucnu/tests/package_list_test.py
@@ -22,13 +22,13 @@ import unittest
import sys
sys.path.insert(0, '../..')
-from cnucnu.package_list import Package
-from cnucnu.package_list import Repository
+from cnucnu.package_list import Package, Repository
+
class PackageTest(unittest.TestCase):
def testCreatePackage(self):
- p = Package("name", "regex", "url", Repository())
+ Package("name", "regex", "url", Repository())
def testRegexUpdate(self):
p = Package("name", "regex", "url", Repository())
@@ -61,12 +61,17 @@ class PackageTest(unittest.TestCase):
self.assertEqual(p.upstream_versions, ["1.23"])
# multiple groups
- p = Package("cnucnu_test", "cnucnu_test-([1-9]+\.[1-9]+\.[1-9]+)-p([0-9]+)\.tar\.gz", "test_url", Repository())
+ p = Package("cnucnu_test",
+ "cnucnu_test-([1-9]+\.[1-9]+\.[1-9]+)-p([0-9]+)\.tar\.gz",
+ "test_url", Repository())
p._html = "cnucnu_test-1.2.3-p4.tar.gz"
self.assertEqual(p.upstream_versions, ["1.2.3.4"])
# empty group
- p = Package("cnucnu_test", "cnucnu_test-([1-9]+\.[1-9]+\.[1-9]+)(-p([0-9]+))?\.tar\.gz", "test_url", Repository())
+ p = Package(
+ "cnucnu_test",
+ "cnucnu_test-([1-9]+\.[1-9]+\.[1-9]+)(-p([0-9]+))?\.tar\.gz",
+ "test_url", Repository())
p._html = "cnucnu_test-1.2.3.tar.gz"
self.assertEqual(p.upstream_versions, ["1.2.3"])