SimpleTestCase.settings() [source] For testing purposes it’s often useful to change a setting
SimpleTestCase.assertRedirects(response, expected_url, status_code=302, target_status_code=200, msg_prefix='', fetch_redirect_response=True)
SimpleTestCase.assertXMLNotEqual(xml1, xml2, msg=None) [source] Asserts that the strings
class RequestFactory [source] The RequestFactory shares the same API as the
class LoginRequiredMixin New in Django 1.9. If
class RequireDebugFalse [source] This filter will only pass on records when settings.DEBUG
get_autocommit(using=None) [source]
handle_no_permission() Depending on the value of raise_exception, the method either raises a PermissionDenied
A common task for web applications is to search some data in the database with user input. In a simple case, this could be filtering a list of objects by a category. A more
create_user(*username_field*, password=None, **other_fields) The prototype of create_user() should accept the username
Page 14 of 35