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-11-03 05:34:05 +08:00
|
|
|
|
2013-01-03 08:00:39 +08:00
|
|
|
class DummyTest(TestCase):
|
|
|
|
def test_warn(self):
|
|
|
|
warnings.warn("warning from test", DeprecationWarning)
|