From: freestorm77 Date: Tue, 22 Jun 2010 21:47:14 +0000 (-0700) Subject: runnin_test_tahoe_css.dpatch X-Git-Url: https://git.rkrishnan.org/%5B/%5D%20/uri/flags/status?a=commitdiff_plain;h=97579af73cc952a39bc7144a04662f1a9d48bb23;p=tahoe-lafs%2Ftahoe-lafs.git runnin_test_tahoe_css.dpatch Runnin test for changes in tahoe.css file --- 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")