Source

CherryPy / cherrypy / test / test_core.py

Diff from to

cherrypy/test/test_core.py

         
         class MultiHeader(Test):
             
-            @cherrypy.tools.append_headers(header_list=[
+            def header_list(self):
+                pass
+            header_list = cherrypy.tools.append_headers(header_list=[
                 (ntob('WWW-Authenticate'), ntob('Negotiate')),
                 (ntob('WWW-Authenticate'), ntob('Basic realm="foo"')),
-                ])
-            def header_list(self):
-                pass
+                ])(header_list)
             
             def commas(self):
                 cherrypy.response.headers['WWW-Authenticate'] = 'Negotiate,Basic realm="foo"'