FE
======================================================================
ERROR: OpenID 1.1 checkid_setup request.
----------------------------------------------------------------------
Traceback (most recent call last):
File "openid/test/test_examples.py", line 109, in test_checkidv1
twill.unit.run_test(ti)
File "/var/lib/python-support/python2.4/twill/unit.py", line 76, in run_test
test_info.run_script()
File "openid/test/test_examples.py", line 40, in run_script
self.script(self)
File "openid/test/test_examples.py", line 135, in twill_checkidv1
c.submit("yes")
File "/var/lib/python-support/python2.4/twill/commands.py", line 354, in submit
browser.submit(submit_button)
File "/var/lib/python-support/python2.4/twill/browser.py", line 401, in submit
raise Exception("no forms on this page!")
Exception: no forms on this page!
======================================================================
FAIL: OpenID 1.1 checkid_setup request.
----------------------------------------------------------------------
Traceback (most recent call last):
File "openid/test/test_examples.py", line 119, in test_allowed
twill.unit.run_test(ti)
File "/var/lib/python-support/python2.4/twill/unit.py", line 76, in run_test
test_info.run_script()
File "openid/test/test_examples.py", line 40, in run_script
self.script(self)
File "openid/test/test_examples.py", line 176, in twill_allowed
self.fail(msg)
AssertionError: Traceback (most recent call last):
File "openid/test/test_examples.py", line 158, in twill_allowed
c.formvalue(0, 'remember', 'true')
File "/var/lib/python-support/python2.4/twill/commands.py", line 426, in formvalue
raise TwillAssertionError("no matching forms!")
TwillAssertionError: no matching forms!
Twill output:==> at http://localhost.localdomain:8080/openidserver?openid.identity=http%3A%2F%2Flocalhost.localdomain%3A8080%2Fid%2Fbob&openid.mode=checkid_setup&openid.return_to=http%3A%2F%2F127.0.0.1%2F__main__.TestServer.test_allowed%2Freturn_to&openid.trust_root=http%3A%2F%2F127.0.0.1%2F__main__.TestServer.test_allowed
Twill errors:
Final page:
<html>
<head>
<title>Python OpenID Server Example - Approve OpenID request?</title>
</head>
<style type="text/css">
h1 a:link {
color: black;
text-decoration: none;
}
h1 a:visited {
color: black;
text-decoration: none;
}
h1 a:hover {
text-decoration: underline;
}
body {
font-family: verdana,sans-serif;
width: 50em;
margin: 1em;
}
div {
padding: .5em;
}
table {
margin: none;
padding: none;
}
.banner {
padding: none 1em 1em 1em;
width: 100%;
}
.leftbanner {
text-align: left;
}
.rightbanner {
text-align: right;
font-size: smaller;
}
.error {
border: 1px solid #ff0000;
background: #ffaaaa;
margin: .5em;
}
.message {
border: 1px solid #2233ff;
background: #eeeeff;
margin: .5em;
}
.form {
border: 1px solid #777777;
background: #ddddcc;
margin: .5em;
margin-top: 1em;
padding-bottom: 0em;
}
dd {
margin-bottom: 0.5em;
}
</style>
<body>
<table class="banner">
<tr>
<td class="leftbanner">
<h1><a href="/">Python OpenID Server Example</a></h1>
</td>
<td class="rightbanner">
You are <a href="/login">not logged in</a>.
</td>
</tr>
</table>
<div class="message">
<p>A site has asked for an identity belonging to
bob, but you are logged in as None. To
log in as bob and approve the login request,
hit OK below. The "Remember this decision" checkbox
applies only to the trust root decision.</p>
</div>
<div class="form">
<table>
<tr><td>Identity:</td><td>http://localhost.localdomain:8080/id/bob</td></tr>
<tr><td>Trust Root:</td><td>http://127.0.0.1/__main__.TestServer.test_allowed</td></tr>
</table>
<p>Allow this authentication to proceed?</p>
<form method="POST" action="/allow">
<input type="checkbox" id="remember" name="remember" value="yes"
/><label for="remember">Remember this
decision</label><br />
<input type="hidden" name="login_as" value="bob"/>
<input type="submit" name="yes" value="yes" />
<input type="submit" name="no" value="no" />
</form>
</div>
</body>
</html>
----------------------------------------------------------------------
Ran 2 tests in 0.517s
FAILED (failures=1, errors=1)
$ python
Python 2.4.4 (#2, Jul 21 2007, 11:00:24)
[GCC 4.1.3 20070718 (prerelease) (Debian 4.1.2-14)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import twill
>>> twill.__version__
'0.9b1'
>>>