test.SimpleTestCase.assertContains()
  • References/Python/Django/Guides

SimpleTestCase.assertContains(response, text, count=None, status_code=200, msg_prefix='', html=False) [source]

2025-01-10 15:47:30
auth.authenticate()
  • References/Python/Django/Guides

authenticate(**credentials) [source] Use authenticate() to verify a set of credentials

2025-01-10 15:47:30
auth.mixins.UserPassesTestMixin.test_func()
  • References/Python/Django/Guides

test_func() You have to override the test_func() method of the class to provide the test that is performed. Furthermore

2025-01-10 15:47:30
auth.forms.UserCreationForm
  • References/Python/Django/Guides

class UserCreationForm A

2025-01-10 15:47:30
test.TransactionTestCase.fixtures
  • References/Python/Django/Guides

TransactionTestCase.fixtures A test case for a database-backed website isn’t much use if there isn’t any data in the database

2025-01-10 15:47:30
sessions.backends.cached_db.SessionStore
  • References/Python/Django/Guides

class backends.cached_db.SessionStore Implements cached database-backed session store.

2025-01-10 15:47:30
sessions.backends.db.SessionStore.create_model_instance()
  • References/Python/Django/Guides

create_model_instance(data) New in Django 1.9. Returns

2025-01-10 15:47:30
test.Client.logout()
  • References/Python/Django/Guides

logout() [source] If your site uses Django’s authentication system

2025-01-10 15:47:30
Models and databases
  • References/Python/Django/Guides

A model is the single, definitive source of data about your data. It contains the essential fields and behaviors of the data you’re storing. Generally, each model maps to a

2025-01-10 15:47:30
test.modify_settings()
  • References/Python/Django/Guides

modify_settings() [source] Likewise, Django provides the modify_settings() decorator:

2025-01-10 15:47:30