mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-02-21 02:01:31 +00:00
runnin_test_tahoe_css.dpatch
Runnin test for changes in tahoe.css file
This commit is contained in:
parent
0304918a77
commit
97579af73c
@ -980,6 +980,14 @@ class Web(WebMixin, WebErrorMixin, testutil.StallMixin, unittest.TestCase):
|
||||
self.public_url + "/foo/bar.txt?t=bogus")
|
||||
return d
|
||||
|
||||
def test_CSS_FILE(self):
|
||||
d = self.GET("/tahoe_css", followRedirect=True)
|
||||
def _check(res):
|
||||
CSS_STYLE=re.compile('toolbar\s{.+text-align:\scenter.+toolbar-item.+display:\sinline',re.DOTALL)
|
||||
self.failUnless(CSS_STYLE.search(res), res)
|
||||
d.addCallback(_check)
|
||||
return d
|
||||
|
||||
def test_GET_FILEURL_uri_missing(self):
|
||||
d = self.GET(self.public_url + "/foo/missing?t=uri")
|
||||
d.addBoth(self.should404, "test_GET_FILEURL_uri_missing")
|
||||
|
Loading…
x
Reference in New Issue
Block a user