File: test_atrule.py

package info (click to toggle)
python-enable 3.3.1-3
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 10,392 kB
  • ctags: 17,135
  • sloc: cpp: 79,151; python: 29,601; makefile: 2,926; sh: 43
file content (13 lines) | stat: -rw-r--r-- 371 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
import unittest
import string
import sys
from pyparsing import ParseException
import enthought.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]
            )