browsers: introduce AuthenticationMixin to replace need_login/LoginPage
The new AuthenticationMixin
may be used instead of LoginPage
which
inherits PagesBrowser
.
The browser needs to implement two methods:
-
check_authentication()
which raises an error if not authenticated authenticate()
Also need_login
has been renamed require_authentication
.