x2gobroker.authmechs.testsuite_authmech module¶
-
class
x2gobroker.authmechs.testsuite_authmech.
X2GoBrokerAuthMech
[source]¶ Bases:
object
Unit testing authentication mechanism class. Used internally for running unit tests of the
x2gobroker
module’s code base.Don’t use this!!!
-
authenticate
(username, password, **kwargs)[source]¶ Test function, faking sucessful authentication for user
test
with passwordsweet
and userjacques
with accentuated characters in the passwordthérèse
.Don’t use this!!!
Parameters: - username (
str
) – The broker username sent by the client (ignored) - password (
str
) – The broker password sent by the client (ignored) - kwargs (
dict
) – Any other parameter (for future features’ compatibility, all ignored for now)
Returns: Authentication failure (always!)
Return type: bool
- username (
-