tests.py 246 B

123456789
  1. import warnings
  2. from django.test import TestCase
  3. warnings.warn("module-level warning from deprecation_app", DeprecationWarning)
  4. class DummyTest(TestCase):
  5. def test_warn(self):
  6. warnings.warn("warning from test", DeprecationWarning)