--- 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()