login(**credentials) [source] If your site uses Django’s authentication
get_login_url() Returns the URL that users who don’t pass the test will be redirected to. Returns login_url if
login(request, user, backend=None) [source] To log a user in, from a view, use login()
SimpleTestCase.allow_database_queries New in Django 1.9.
Caution This is an advanced topic. A working knowledge of Django’s class-based
__delitem__(key) Example: del request.session['fav_color']. This raises KeyError if the given key
__getitem__(key) Example: fav_color = request.session['fav_color']
domain Translation domain containing strings to add in the view output. Defaults to 'djangojs'.
DiscoverRunner.teardown_databases(old_config, **kwargs) Destroys the test databases, restoring pre-test conditions.
get_permission_denied_message() When raise_exception is True, this method can be used to control the
Page 18 of 35