Changeset 341
- Timestamp:
- 06/20/05 08:07:39
- Files:
-
- trunk/cherrypy/test/test_tutorials.py (modified) (5 diffs)
- trunk/cherrypy/tutorial/tut06_default_method.py (moved) (moved from trunk/cherrypy/tutorial/tut07_default_method.py)
- trunk/cherrypy/tutorial/tut07_sessions.py (moved) (moved from trunk/cherrypy/tutorial/tut08_sessions.py)
- trunk/cherrypy/tutorial/tut08_generators_and_yield.py (moved) (moved from trunk/cherrypy/tutorial/tut09_generators_and_yield.py)
- trunk/cherrypy/tutorial/tut09_sessionfilter.py (moved) (moved from trunk/cherrypy/tutorial/tut10_sessionfilter.py)
- trunk/cherrypy/tutorial/tut10_file_upload.py (moved) (moved from trunk/cherrypy/tutorial/tut11_file_upload.py)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/cherrypy/test/test_tutorials.py
r333 r341 127 127 self.assertEqual(cpg.response.body, msg) 128 128 129 def test06Aspects(self): 130 load_tut_module("tut06_aspects") 131 msg = ''' 132 <html> 133 <head> 134 <title>Tutorial 6 -- Aspect Powered!</title> 135 <head> 136 <body> 137 <h2>Tutorial 6 -- Aspect Powered!</h2> 138 139 <p> 140 Isn't this exciting? There's 141 <a href="./another/">another page</a>, too! 142 </p> 143 144 </body> 145 </html> 146 ''' 147 helper.request("/") 148 self.assertEqual(cpg.response.body, msg) 149 150 def test07DefaultMethod(self): 151 load_tut_module("tut07_default_method") 129 def test06DefaultMethod(self): 130 load_tut_module("tut06_default_method") 152 131 helper.request('/hendrik') 153 132 self.assertEqual(cpg.response.body, … … 155 134 '(<a href="./">back</a>)') 156 135 157 def test0 8Sessions(self):158 load_tut_module("tut0 8_sessions")136 def test07Sessions(self): 137 load_tut_module("tut07_sessions") 159 138 cpg.config.update({"global": {"sessionFilter.on": True}}) 160 139 … … 171 150 "\n ") 172 151 173 def test0 9GeneratorsAndYield(self):174 load_tut_module("tut0 9_generators_and_yield")152 def test08GeneratorsAndYield(self): 153 load_tut_module("tut08_generators_and_yield") 175 154 helper.request('/') 176 155 self.assertEqual(cpg.response.body, … … 180 159 '</body></html>') 181 160 182 def test 10SessionFilter(self):183 load_tut_module("tut 10_sessionfilter")161 def test09SessionFilter(self): 162 load_tut_module("tut09_sessionfilter") 184 163 cpg.config.update({"global": {"sessionFilter.on": True}}) 185 164 … … 190 169 self.assert_("viewed this page 2 times" in cpg.response.body) 191 170 192 def test1 1FileUpload(self):193 load_tut_module("tut1 1_file_upload")171 def test10FileUpload(self): 172 load_tut_module("tut10_file_upload") 194 173 195 174 h = [("Content-type", "multipart/form-data; boundary=x"),

