]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
runnin_test_tahoe_css.dpatch
authorfreestorm77 <freestorm77@gmail.com>
Tue, 22 Jun 2010 21:47:14 +0000 (14:47 -0700)
committerfreestorm77 <freestorm77@gmail.com>
Tue, 22 Jun 2010 21:47:14 +0000 (14:47 -0700)
Runnin test for changes in tahoe.css file

src/allmydata/test/test_web.py

index 41d50a23f34ce744f08a3fd613be6b6256b8e18a..37b019ccde27221b5181e617f814cc32fd749900 100644 (file)
@@ -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")