Home | Trees | Indices | Help |
|
---|
|
1 """ 2 tests for escaping 3 """ 4 __author__ = '$LastChangedBy: cthedot $' 5 __date__ = '$LastChangedDate: 2007-06-17 16:04:45 +0200 (So, 17 Jun 2007) $' 6 __version__ = '0.9.2a2, $LastChangedRevision: 63 $' 7 8 import xml.dom 9 10 import basetest 11 12 13 import cssutils.css 14 15 19 20 ## def test_escapes(self): 21 ## "ESCAPES" 22 ## tests = { 23 ## #u'\\@a "x";': u'\\@a "x";', 24 ## u'a\\{ {}': u'a\\{ {}', 25 ## u'a { x\\::1;y:2 }': u'a {\n x\\:: 1;\n y: 2\n }' 26 ## } 27 ## for css, exp in tests.items(): 28 ## s = cssutils.parseString(css) 29 ## self.assertEqual(exp, s.cssText) 30 31 32 if __name__ == '__main__': 33 import unittest 34 unittest.main() 35
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0beta1 on Wed Sep 05 13:22:14 2007 | http://epydoc.sourceforge.net |