File: test_atrule.py

package info (click to toggle)
python-enable 4.3.0-2
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 7,280 kB
  • ctags: 13,899
  • sloc: cpp: 48,447; python: 28,502; ansic: 9,004; makefile: 315; sh: 44
file content (13 lines) | stat: -rw-r--r-- 355 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
import unittest
import string
import sys
from pyparsing import ParseException
import enable.savage.svg.css.atrule as atrule

class TestAtKeyword(unittest.TestCase):
    def testValidKeywords(self):
        for kw in ["@import", "@page",]:
            self.assertEqual(
                kw,
                atrule.atkeyword.parseString(kw)[0]
            )