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) - 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

Table Of Contents

  • Welcome to django-test-plus’s documentation!
  • Indices and tables

Related Topics

  • Documentation overview
    • Next: Usage

This Page

  • Show Source

Quick search

©2015, Frank Wiles. | Powered by Sphinx 1.7.4 & Alabaster 0.7.11 | Page source