Welcome to django-test-plus’s documentation!¶

Contents:

  • Usage
    • Testing DRF views
  • 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
    • assertLoginRequired(url_name, *args, **kwargs)
    • login context
  • Ensuring low query counts
    • assertNumQueriesLessThan(number) - context
    • assertGoodView(url_name, *args, **kwargs)
  • Testing class-based “generic” views
    • Methods
  • Disable logging

Indices and tables¶

  • Index
  • Module Index
  • Search Page

django-test-plus

Navigation

  • Usage
  • Methods
  • Authentication Helpers
  • Ensuring low query counts
  • Testing class-based “generic” views
  • Disable logging

Related Topics

  • Documentation overview
    • Next: Usage

Quick search

©2015, Frank Wiles. | Powered by Sphinx 1.7.9 & Alabaster 0.7.12 | Page source