diff options
Diffstat (limited to 'tests/test_discovery_sample3/tests_transaction_test_case_ordering.py')
| -rw-r--r-- | tests/test_discovery_sample3/tests_transaction_test_case_ordering.py | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/tests/test_discovery_sample3/tests_transaction_test_case_ordering.py b/tests/test_discovery_sample3/tests_transaction_test_case_ordering.py new file mode 100644 index 0000000000..8d79bc08a6 --- /dev/null +++ b/tests/test_discovery_sample3/tests_transaction_test_case_ordering.py @@ -0,0 +1,28 @@ +from unittest import TestCase + +from django.test import ( + SimpleTestCase, TestCase as DjangoTestCase, TransactionTestCase, +) + + +class TestDjangoTestCase(DjangoTestCase): + def test_sample(self): + self.assertEqual(1, 1) + + +class TestVanillaUnittest(TestCase): + def test_sample(self): + self.assertEqual(1, 1) + + +class TestZimpleTestCase(SimpleTestCase): + # Z gets this test to appear after Vanilla in the default suite. + def test_sample(self): + self.assertEqual(1, 1) + + +class TestTransactionTestCase(TransactionTestCase): + available_apps = ['test_discovery_sample3'] + + def test_sample(self): + self.assertEqual(1, 1) |
