mirror of
https://github.com/django/django.git
synced 2024-11-24 02:47:35 +01:00
24 lines
478 B
Python
24 lines
478 B
Python
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)
|