diff options
author | Aymeric Augustin <aymeric.augustin@m4x.org> | 2013-09-22 21:20:22 +0200 |
---|---|---|
committer | Aymeric Augustin <aymeric.augustin@m4x.org> | 2013-09-22 22:48:22 +0200 |
commit | e6c0020d1973abf168c3a2357ab4cf44fa2d47ca (patch) | |
tree | 098ef1341f81e84995deeb2eec3c9124bafadeca /tests/transactions | |
parent | 2ca00faa913754cd5860f6e1f23c8da2529c691a (diff) | |
download | django-e6c0020d1973abf168c3a2357ab4cf44fa2d47ca.tar.gz |
Translated a test to English for consistency.
Also fixed a typo.
Diffstat (limited to 'tests/transactions')
-rw-r--r-- | tests/transactions/tests.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/transactions/tests.py b/tests/transactions/tests.py index 9cf8b4d742..70a77b719e 100644 --- a/tests/transactions/tests.py +++ b/tests/transactions/tests.py @@ -265,7 +265,7 @@ class AtomicMergeTests(TransactionTestCase): Reporter.objects.create(first_name="Archibald", last_name="Haddock") with six.assertRaisesRegex(self, Exception, "Oops"): with transaction.atomic(savepoint=False): - Reporter.objects.create(first_name="Tournesol") + Reporter.objects.create(first_name="Calculus") raise Exception("Oops, that's his last name") # It wasn't possible to roll back self.assertEqual(Reporter.objects.count(), 3) @@ -281,7 +281,7 @@ class AtomicMergeTests(TransactionTestCase): Reporter.objects.create(first_name="Archibald", last_name="Haddock") with six.assertRaisesRegex(self, Exception, "Oops"): with transaction.atomic(savepoint=False): - Reporter.objects.create(first_name="Tournesol") + Reporter.objects.create(first_name="Calculus") raise Exception("Oops, that's his last name") # It wasn't possible to roll back self.assertEqual(Reporter.objects.count(), 3) |