File: test_cssutilsimport.py

package info (click to toggle)
python-css-parser 1.0.10-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,248 kB
  • sloc: python: 20,584; sh: 11; makefile: 7
file content (25 lines) | stat: -rw-r--r-- 715 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
from __future__ import absolute_import
from __future__ import unicode_literals
import unittest
"""Testcase for css_parser imports"""


class CSSutilsImportTestCase(unittest.TestCase):
    def test_import_all(self):
        "from css_parser import *"
        import css_parser
        from css_parser import __all__ as aimp

        exp = {
            'CSSParser': css_parser.CSSParser,  # noqa
            'CSSSerializer': css_parser.CSSSerializer,  # noqa
            'css': css_parser.css,
            'stylesheets': css_parser.stylesheets,
        }
        self.assertEqual(len(aimp), len(exp))
        self.assertEqual(set(aimp), set(exp))


if __name__ == '__main__':
    import unittest
    unittest.main()