Ticket #12088: test_client.diff

File test_client.diff, 746 bytes (added by Oliver Beattie, 15 years ago)
  • django/test/testcases.py

     
    204204        transaction.rollback_unless_managed()
    205205
    206206class TransactionTestCase(unittest.TestCase):
     207    CLIENT_CLASS = Client
     208   
    207209    def _pre_setup(self):
    208210        """Performs any pre-test setup. This includes:
    209211
     
    237239        set up. This means that user-defined Test Cases aren't required to
    238240        include a call to super().setUp().
    239241        """
    240         self.client = Client()
     242        self.client = self.CLIENT_CLASS()
    241243        try:
    242244            self._pre_setup()
    243245        except (KeyboardInterrupt, SystemExit):
Back to Top