11 lines
227 B
Python
11 lines
227 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')
|