Django Framework

  1. Testing
    1. Writing and Running Tests
      1. Test Discovery
        1. Running Tests with `manage.py test`
          1. Test Settings
            1. Test Databases
            2. The `TestCase` Class
              1. Structure of a TestCase
                1. Setup and Teardown Methods
                  1. `setUp()`
                    1. `tearDown()`
                      1. `setUpClass()`
                        1. `tearDownClass()`
                        2. Assertions
                          1. Django-specific Assertions
                            1. Standard Python Assertions
                            2. Test Data
                              1. Creating Test Data
                                1. Test Fixtures
                              2. The Test Client
                                1. Simulating Requests
                                  1. GET Requests
                                    1. POST Requests
                                      1. File Uploads
                                      2. Testing Views and URLs
                                        1. Testing Authentication
                                          1. Login and Logout
                                            1. Permission Testing
                                            2. Response Testing
                                              1. Status Codes
                                                1. Content Testing
                                                  1. Template Testing
                                                    1. Context Testing
                                                  2. Test Fixtures
                                                    1. Loading Fixtures
                                                      1. Creating Fixtures
                                                        1. Fixture Formats
                                                          1. JSON Fixtures
                                                            1. XML Fixtures
                                                              1. YAML Fixtures
                                                            2. Advanced Testing
                                                              1. Testing Models
                                                                1. Model Creation
                                                                  1. Model Validation
                                                                    1. Model Methods
                                                                    2. Testing Forms
                                                                      1. Form Validation
                                                                        1. Form Rendering
                                                                        2. Testing Templates
                                                                          1. Template Rendering
                                                                            1. Template Tags and Filters
                                                                            2. Testing Email
                                                                              1. Testing File Uploads
                                                                                1. Testing Signals
                                                                                2. Test Tools and Utilities
                                                                                  1. `override_settings`
                                                                                    1. `TransactionTestCase`
                                                                                      1. `LiveServerTestCase`
                                                                                        1. `SimpleTestCase`
                                                                                        2. Best Practices for Testing
                                                                                          1. Test Organization
                                                                                            1. Isolating Tests
                                                                                              1. Using Factories
                                                                                                1. Mocking and Patching
                                                                                                  1. Test Coverage