Welcome to django-test-plus’s documentation!¶
Contents:
- Usage
- Methods
- reverse(url_name, *args, **kwargs)
- get(url_name, follow=False, *args, **kwargs)
- post(url_name, follow=False, *args, **kwargs)
- put(url_name, follow=False, *args, **kwargs)
- patch(url_name, follow=False, *args, **kwargs)
- head(url_name, follow=False, *args, **kwargs)
- trace(url_name, follow=False, *args, **kwargs)
- options(url_name, follow=False, *args, **kwargs)
- delete(url_name, follow=False, *args, **kwargs)
- get_context(key)
- assertInContext(key)
- assertContext(key, value)
- response_XXX(response, msg=None) - status code checking
- assertResponseContains(text, response=None, html=True)
- assertResponseNotContains(text, response=None, html=True)
- assertResponseHeaders(headers, response=None)
- get_check_200(url_name, *args, **kwargs)
- make_user(username=’testuser’, password=’password’, perms=None)
- Authentication Helpers
- Ensuring low query counts
- Testing class-based “generic” views
- Disable logging