summaryrefslogtreecommitdiff
path: root/tests/test_runner_apps
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_runner_apps')
-rw-r--r--tests/test_runner_apps/failures/__init__.py0
-rw-r--r--tests/test_runner_apps/failures/tests_failures.py23
2 files changed, 23 insertions, 0 deletions
diff --git a/tests/test_runner_apps/failures/__init__.py b/tests/test_runner_apps/failures/__init__.py
new file mode 100644
index 0000000000..e69de29bb2
--- /dev/null
+++ b/tests/test_runner_apps/failures/__init__.py
diff --git a/tests/test_runner_apps/failures/tests_failures.py b/tests/test_runner_apps/failures/tests_failures.py
new file mode 100644
index 0000000000..0483fcd0f1
--- /dev/null
+++ b/tests/test_runner_apps/failures/tests_failures.py
@@ -0,0 +1,23 @@
+from unittest import TestCase, expectedFailure
+
+
+class FailureTestCase(TestCase):
+ def test_sample(self):
+ self.assertEqual(0, 1)
+
+
+class ErrorTestCase(TestCase):
+ def test_sample(self):
+ raise Exception('test')
+
+
+class ExpectedFailureTestCase(TestCase):
+ @expectedFailure
+ def test_sample(self):
+ self.assertEqual(0, 1)
+
+
+class UnexpectedSuccessTestCase(TestCase):
+ @expectedFailure
+ def test_sample(self):
+ self.assertEqual(1, 1)