Ticket #12088: test_client.diff
File test_client.diff, 746 bytes (added by , 15 years ago) |
---|
-
django/test/testcases.py
204 204 transaction.rollback_unless_managed() 205 205 206 206 class TransactionTestCase(unittest.TestCase): 207 CLIENT_CLASS = Client 208 207 209 def _pre_setup(self): 208 210 """Performs any pre-test setup. This includes: 209 211 … … 237 239 set up. This means that user-defined Test Cases aren't required to 238 240 include a call to super().setUp(). 239 241 """ 240 self.client = Client()242 self.client = self.CLIENT_CLASS() 241 243 try: 242 244 self._pre_setup() 243 245 except (KeyboardInterrupt, SystemExit):