SimpleTestCase.assertTemplateUsed(response, template_name, msg_prefix='', count=None) [source] Asserts
DiscoverRunner.test_loader This is the class that loads tests, whether from TestCases or modules or otherwise and bundles them
set_password(raw_password) Sets the user’s password to the given raw string, taking care of the password hashing. Doesn’t save
get_by_natural_key(username) Retrieves a user instance using the contents of the field nominated by USERNAME_FIELD
check_password(password, encoded) [source] If you’d like to manually authenticate a user
TransactionTestCase.assertNumQueries(num, func, *args, **kwargs) [source] Asserts that when
DiscoverRunner.test_suite The class used to build the test suite. By default it is set to unittest.TestSuite. This
class TransactionTestCase [source] TransactionTestCase inherits from
Django 1.5 is the first version of Django to support Python 3. The same code runs both on Python 2 (≥ 2.6.5) and Python 3 (≥ 3.2), thanks to the
A model is the single, definitive source of information about your data. It contains the essential fields and behaviors of the data you’re storing. Generally, each model maps
Page 25 of 35