Catches when Expecting Exceptions in Django Unit Tests
Dylan Leigh To cover all bases when writing a suite of unit tests, you need to test for the exceptional cases. However, handling exceptions can break the usual flow of the test case and confuse Django. Example scenario: unique together For example, we have an ecommerce site with many products serving...