frappe/env/lib/python3.12/site-packages/cssutils/tests/test_cssutilsimport.py

19 lines
494 B
Python
Raw Normal View History

"""Testcase for cssutils imports"""
import cssutils
class TestCSSutilsImport:
def test_import_all(self):
"from cssutils import *"
namespace = {}
exec('from cssutils import *', namespace)
del namespace['__builtins__']
exp = {
'CSSParser': cssutils.CSSParser,
'CSSSerializer': cssutils.CSSSerializer,
'css': cssutils.css,
'stylesheets': cssutils.stylesheets,
}
assert namespace == exp