diff options
author | Stevan Radakovic <stevan.radakovic@linaro.org> | 2012-05-16 18:46:12 +0200 |
---|---|---|
committer | Stevan Radakovic <stevan.radakovic@linaro.org> | 2012-05-16 18:46:12 +0200 |
commit | b20330f85657dd0b08365b37b505fd359cc6817e (patch) | |
tree | 9c74c33d84543088948eb52f1a3a2e048868a286 | |
parent | fc089004754234b81b507d88c6be0f541391b6c0 (diff) |
Add new failing test for link in platform directory.
-rw-r--r-- | docs/releases.txt | 27 | ||||
-rw-r--r-- | testing/doctest_production_browser.py | 5 |
2 files changed, 31 insertions, 1 deletions
diff --git a/docs/releases.txt b/docs/releases.txt index 40964d9..c1db01f 100644 --- a/docs/releases.txt +++ b/docs/releases.txt @@ -115,3 +115,30 @@ license encountered. Accept-Ranges:... Content-Type: application/x-bzip2... ... + + +Try accessing the leb-snowball link in platform latest android dir +------------------------------------------------------------------ + +Browsing back into the platform/latest/android/latest. It should work +without any license popping out. + + >>> browser.browse_to_absolute("platform/") + >>> print browser.get_content_title() + Index of /platform + >>> browser.browse_to_relative("latest/") + >>> print browser.get_content_title() + Index of /platform/latest + >>> browser.browse_to_relative("android/") + >>> print browser.get_content_title() + Index of /platform/latest/android + >>> browser.browse_to_relative("latest/") + >>> print browser.get_content_title() + Index of /platform/latest/android/latest + + +Now try opening the leb-snowball link. + + >>> browser.browse_to_relative("leb-snowball/") + >>> print browser.get_content_title() + Index of /platform/latest/android/latest/leb-snowball diff --git a/testing/doctest_production_browser.py b/testing/doctest_production_browser.py index eff04b8..0b5a157 100644 --- a/testing/doctest_production_browser.py +++ b/testing/doctest_production_browser.py @@ -87,7 +87,10 @@ class DoctestProductionBrowser(): def get_title(self, html): soup = BeautifulSoup(html) titles_all = soup.findAll('title') - return titles_all[0].contents[0] + if len(titles_all) > 0: + return titles_all[0].contents[0] + else: + return "" def browse_to_relative(self, path): """Change current url relatively.""" |