1 from twisted.trial import unittest
3 from formless import webform
5 class Web(unittest.TestCase):
6 def test_read_default_css(self):
8 Sometimes Nevow can't find its resource files such as its default css file.
11 from allmydata import get_package_versions, normalized_version
12 nevow_ver = get_package_versions()['Nevow']
14 if not normalized_version(nevow_ver) >= normalized_version('0.9.33'):
15 raise unittest.SkipTest("We pass this test only with Nevow >= v0.9.33, which is the first version of Nevow that has our patch from http://www.divmod.org/trac/ticket/2527")
17 webform.defaultCSS.openForReading()