diff options
author | Ville Skyttä <ville.skytta@iki.fi> | 2011-02-05 10:03:06 +0200 |
---|---|---|
committer | Till Maas <opensource@till.name> | 2011-02-20 19:09:21 +0100 |
commit | c9c8c71a1204fbd4dc19fe525f62b04b5fd1134f (patch) | |
tree | a195c44ea43221ced4e8b5d5d78fb9dd86211632 /cnucnu/tests | |
parent | fb56c0e01105d4ab1a34920f377c66277465d534 (diff) | |
download | cnucnu-c9c8c71a1204fbd4dc19fe525f62b04b5fd1134f.tar.gz cnucnu-c9c8c71a1204fbd4dc19fe525f62b04b5fd1134f.tar.xz cnucnu-c9c8c71a1204fbd4dc19fe525f62b04b5fd1134f.zip |
Implement subdirectory handling.
Each /^/ in the given URL is replaced by the latest version dir at that level.
Diffstat (limited to 'cnucnu/tests')
-rwxr-xr-x | cnucnu/tests/helper_test.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cnucnu/tests/helper_test.py b/cnucnu/tests/helper_test.py index fddd489..b925a12 100755 --- a/cnucnu/tests/helper_test.py +++ b/cnucnu/tests/helper_test.py @@ -22,7 +22,7 @@ import unittest import sys sys.path.insert(0, '../..') -from cnucnu.helper import upstream_cmp, upstream_max, split_rc, cmp_upstream_repo, get_rc, get_html +from cnucnu.helper import upstream_cmp, upstream_max, split_rc, cmp_upstream_repo, get_rc, get_html, expand_subdirs class HelperTest(unittest.TestCase): @@ -130,6 +130,7 @@ class HelperTest(unittest.TestCase): http_url = ("http://www.fedoraproject.org") res = StringIO.StringIO() + http_url = expand_subdirs(http_url) data1 = get_html(http_url) callback = [res.write, lambda ignore: reactor.stop()] |