[Twisted-Python] async returns from DefaultAuthorizer.addIdentity

Kevin Turner acapnotic at twistedmatrix.com
Fri Sep 27 18:14:45 EDT 2002


Authorizer.addCallback's documentation says "Create an identity and make
a callback when it has been created."  So I figured that meant I should
have DefaultAuthorizer return a defer.succeed/fail instead of
None/raise.  But returning a defer.fail makes
test_cred.AuthorizerTestCase.test_addIdent fail, as it has an
assertRaises in there.

So who is wrong?  The documentation, my interpretation of the
documentation, or the unit test?

"Unit-tests-never-lie"ly yours,

 - Acap

-- 
The moon is waning gibbous, 70.1% illuminated, 20.2 days old.





More information about the Twisted-Python mailing list