From 97579af73cc952a39bc7144a04662f1a9d48bb23 Mon Sep 17 00:00:00 2001 From: freestorm77 <freestorm77@gmail.com> Date: Tue, 22 Jun 2010 14:47:14 -0700 Subject: [PATCH] runnin_test_tahoe_css.dpatch Runnin test for changes in tahoe.css file --- src/allmydata/test/test_web.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/allmydata/test/test_web.py b/src/allmydata/test/test_web.py index 41d50a23..37b019cc 100644 --- a/src/allmydata/test/test_web.py +++ b/src/allmydata/test/test_web.py @@ -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") -- 2.45.2