2015-10-19 22:38:23 +02:00
|
|
|
import warnings
|
|
|
|
|
|
|
|
|
|
from pelican.tests.support import unittest
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class TestSuiteTest(unittest.TestCase):
|
|
|
|
|
def test_error_on_warning(self):
|
|
|
|
|
with self.assertRaises(UserWarning):
|
2023-10-29 22:18:29 +01:00
|
|
|
warnings.warn("test warning")
|