Ticket #1097: runnin_test_directory_xhtml.dpatch

File runnin_test_directory_xhtml.dpatch, 1.5 KB (added by freestorm, at 2010-06-22T22:40:15Z)

Running test for directory.py

Line 
1Tue Jun 22 22:14:03 CEST 2010  freestorm77@gmail.com
2  * runnin_test_directory_xhtml.dpatch
3 
4  Runnin test for diretory.xhtml top banner
5 
6
7New patches:
8
9[runnin_test_directory_xhtml.dpatch
10freestorm77@gmail.com**20100622201403
11 Ignore-this: f8962463fce50b9466405cb59fe11d43
12 
13 Runnin test for diretory.xhtml top banner
14 
15] hunk ./src/allmydata/test/test_web.py 988
16         d.addBoth(self.should404, "test_GET_FILEURL_uri_missing")
17         return d
18 
19+    def test_GET_DIRECTORY_html_banner(self):
20+        d = self.GET(self.public_url + "/foo", followRedirect=True)
21+        def _check(res):
22+            self.failUnlessIn('<div class="toolbar-item"><a href="../../..">Return to Welcome page</a></div>',res)
23+        d.addCallback(_check)
24+        return d
25+
26     def test_GET_DIRURL(self):
27         # the addSlash means we get a redirect here
28         # from /uri/$URI/foo/ , we need ../../../ to get back to the root
29
30Context:
31
32[docs: about.html link to home page early on, and be decentralized storage instead of cloud storage this time around
33zooko@zooko.com**20100619065318
34 Ignore-this: dc6db03f696e5b6d2848699e754d8053
35] 
36[docs: update about.html, especially to have a non-broken link to quickstart.html, and also to comment out the broken links to "for Paranoids" and "for Corporates"
37zooko@zooko.com**20100619065124
38 Ignore-this: e292c7f51c337a84ebfeb366fbd24d6c
39] 
40[TAG allmydata-tahoe-1.7.0
41zooko@zooko.com**20100619052631
42 Ignore-this: d21e27afe6d85e2e3ba6a3292ba2be1
43] 
44Patch bundle hash:
45b300293224abee54692c2eda62ff605a9fab889b