1
0
Fork 0
forked from github/pelican
pelican-theme/pelican/tests/test_testsuite.py
2024-05-30 12:21:52 -05:00

9 lines
240 B
Python

import warnings
from pelican.tests.support import unittest
class TestSuiteTest(unittest.TestCase):
def test_error_on_warning(self):
with self.assertRaises(UserWarning):
warnings.warn("test warning") # noqa: B028