aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorGeorgy Redkozubov <georgy.redkozubov@linaro.org>2012-06-18 17:19:44 +0400
committerGeorgy Redkozubov <georgy.redkozubov@linaro.org>2012-06-18 17:19:44 +0400
commit6c8ade32c486154ac5e941cb8ad3d9170be0d7f1 (patch)
tree6d000ca49e3beee7642e0f83ba931ebc53d1b65d /tests
parente3676fdc8b4eb262bf2f47dcf2dc416ccf4a0cb6 (diff)
parentf2301b8d6d99248c49ff4305eca9321a34bc3ed8 (diff)
[merge] Added missed OpenID handling
Diffstat (limited to 'tests')
-rw-r--r--tests/test_click_through_license.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/test_click_through_license.py b/tests/test_click_through_license.py
index 72920ff..00cd1c9 100644
--- a/tests/test_click_through_license.py
+++ b/tests/test_click_through_license.py
@@ -39,6 +39,7 @@ dirs_only_dir = '/android/~linaro-android/'
build_info_samsung_test_file = '/android/build-info/origen-blob.txt'
build_info_ste_test_file = '/android/build-info/snowball-blob.txt'
build_info_not_protected_test_file = '/android/build-info/panda-open.txt'
+build_info_openid_test_file = '/android/build-info/openid.txt'
class Contains(object):
@@ -320,3 +321,10 @@ class TestLicense(TestCase):
if os.path.exists("%s/cookies.txt" % docroot):
os.rename("%s/cookies.txt" % docroot, "%s/cookies.ste" % docroot)
self.assertThat(testfile, Contains(search))
+
+ def test_build_info_openid_protection(self):
+ search = "This is protected with OpenID."
+ testfile = fetcher.get(host + build_info_openid_test_file)
+ fetcher.close()
+ self.assertThat(testfile, Contains(search))
+