class BasicAuthTestsMixin: (source)
Known subclasses: twisted.web.test.test_httpauth.BasicAuthTests
TestCase
mixin class which defines a number of tests for basic.BasicCredentialFactory
. Because this mixin defines setUp, it must be inherited before TestCase
.
Method | make |
Create a request object to be passed to basic.BasicCredentialFactory.decode along with a response value. Override this in a subclass. |
Method | set |
Undocumented |
Method | test_incorrect |
basic.BasicCredentialFactory.decode decodes a base64-encoded response with incorrect padding. |
Method | test |
BasicCredentialFactory implements ICredentialFactory . |
Method | test_invalid |
basic.BasicCredentialFactory.decode raises LoginFailed when passed a response which is not valid base64-encoded text. |
Method | test_invalid |
basic.BasicCredentialFactory.decode raises LoginFailed if passed a response which is not base64-encoded. |
Method | test_username |
basic.BasicCredentialFactory.decode turns a base64-encoded response into a UsernamePassword object with a password which reflects the one which was encoded in the response. |
Instance Variable | credential |
Undocumented |
Instance Variable | password |
Undocumented |
Instance Variable | realm |
Undocumented |
Instance Variable | request |
Undocumented |
Instance Variable | username |
Undocumented |
Create a request object to be passed to basic.BasicCredentialFactory.decode
along with a response value. Override this in a subclass.
basic.BasicCredentialFactory.decode
raises LoginFailed
when passed a response which is not valid base64-encoded text.
basic.BasicCredentialFactory.decode
raises LoginFailed
if passed a response which is not base64-encoded.
basic.BasicCredentialFactory.decode
turns a base64-encoded response into a UsernamePassword
object with a password which reflects the one which was encoded in the response.