diff options
author | Jason Myers <jason@jasonamyers.com> | 2013-11-02 16:34:05 -0500 |
---|---|---|
committer | Jason Myers <jason@jasonamyers.com> | 2013-11-02 23:48:47 -0500 |
commit | c3791463a5a9674f8e0148fbab57eae23c138896 (patch) | |
tree | 6606acdb74132a344a49e910dec5d0356389a569 /tests/transactions | |
parent | 2a03a9a9a1c4517be75e72899e545b0bc9dd0688 (diff) | |
download | django-c3791463a5a9674f8e0148fbab57eae23c138896.tar.gz |
Fixing E302 Errors
Signed-off-by: Jason Myers <jason@jasonamyers.com>
Diffstat (limited to 'tests/transactions')
-rw-r--r-- | tests/transactions/tests.py | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/tests/transactions/tests.py b/tests/transactions/tests.py index 8c0c535d31..5c38bc8ef2 100644 --- a/tests/transactions/tests.py +++ b/tests/transactions/tests.py @@ -395,7 +395,8 @@ class TransactionTests(IgnoreDeprecationWarningsMixin, TransactionTestCase): """ The default behavior is to autocommit after each save() action. """ - self.assertRaises(Exception, + self.assertRaises( + Exception, self.create_a_reporter_then_fail, "Alice", "Smith" ) @@ -411,7 +412,8 @@ class TransactionTests(IgnoreDeprecationWarningsMixin, TransactionTestCase): autocomitted_create_then_fail = transaction.autocommit( self.create_a_reporter_then_fail ) - self.assertRaises(Exception, + self.assertRaises( + Exception, autocomitted_create_then_fail, "Alice", "Smith" ) @@ -426,7 +428,8 @@ class TransactionTests(IgnoreDeprecationWarningsMixin, TransactionTestCase): autocomitted_create_then_fail = transaction.autocommit(using='default')( self.create_a_reporter_then_fail ) - self.assertRaises(Exception, + self.assertRaises( + Exception, autocomitted_create_then_fail, "Alice", "Smith" ) @@ -453,7 +456,8 @@ class TransactionTests(IgnoreDeprecationWarningsMixin, TransactionTestCase): using_committed_on_success = transaction.commit_on_success(using='default')( self.create_a_reporter_then_fail ) - self.assertRaises(Exception, + self.assertRaises( + Exception, using_committed_on_success, "Dirk", "Gently" ) @@ -519,7 +523,8 @@ class TransactionTests(IgnoreDeprecationWarningsMixin, TransactionTestCase): using_manually_managed_mistake = transaction.commit_manually(using='default')( self.manually_managed_mistake ) - self.assertRaises(transaction.TransactionManagementError, + self.assertRaises( + transaction.TransactionManagementError, using_manually_managed_mistake ) @@ -544,6 +549,7 @@ class TransactionRollbackTests(IgnoreDeprecationWarningsMixin, TransactionTestCa self.assertRaises(IntegrityError, execute_bad_sql) transaction.rollback() + class TransactionContextManagerTests(IgnoreDeprecationWarningsMixin, TransactionTestCase): available_apps = ['transactions'] |