2013-01-03 08:00:39 +08:00
|
|
|
import warnings
|
|
|
|
|
|
|
|
from django.test import TestCase
|
|
|
|
|
2013-03-25 12:34:46 +08:00
|
|
|
warnings.warn("module-level warning from deprecation_app", DeprecationWarning)
|
|
|
|
|
2013-01-03 08:00:39 +08:00
|
|
|
class DummyTest(TestCase):
|
|
|
|
def test_warn(self):
|
|
|
|
warnings.warn("warning from test", DeprecationWarning)
|
|
|
|
|
|
|
|
|