forked from github/pelican
13 lines
308 B
Python
13 lines
308 B
Python
# -*- coding: utf-8 -*-
|
|
from __future__ import print_function, unicode_literals
|
|
|
|
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')
|