web/test/unittest_propertysheet.py
changeset 5445 4467ed43d97d
parent 5444 f7fdb5dd82f6
child 5466 b5af2ac0c43c
--- a/web/test/unittest_propertysheet.py	Fri Apr 30 12:14:15 2010 +0200
+++ b/web/test/unittest_propertysheet.py	Fri Apr 30 12:15:37 2010 +0200
@@ -6,7 +6,7 @@
 class PropertySheetTC(TestCase):
 
     def test(self):
-        ps = PropertySheet(datadir_url='http://cwtest.com')
+        ps = PropertySheet(None, datadir_url='http://cwtest.com')
         ps.load(join(DATADIR, 'sheet1.py'))
         ps.load(join(DATADIR, 'sheet2.py'))
         # defined by sheet1
@@ -18,7 +18,8 @@
         # defined by sheet1, extended by sheet2
         self.assertEquals(ps['stylesheets'], ['http://cwtest.com/cubicweb.css',
                                               'http://cwtest.com/mycube.css'])
-
+        self.assertEquals(ps.compile('a {bgcolor: %(bgcolor)s; size: 1%;}'),
+                          'a {bgcolor: #FFFFFF; size: 1%;}')
 
 if __name__ == '__main__':
     unittest_main()