Package cherrypy :: Package test :: Module helper :: Class CPWebCase
[hide private]
[frames] | no frames]

Class CPWebCase

source code

       object --+        
                |        
unittest.TestCase --+    
                    |    
      webtest.WebCase --+
                        |
                       CPWebCase
Known Subclasses:
test_xmlrpc.XmlRpcTest, test_etags.ETagTest, test_tutorials.TutorialTest, test_tools.ToolTests, test_encoding.EncodingTests, test_virtualhost.VirtualHostTest, test_static.StaticTest, test_proxy.ProxyTest, test_config.ConfigTests, test_misc_tools.AcceptTest, test_misc_tools.RefererTest, test_misc_tools.ResponseHeadersTest, test_tidy.TidyTest, test_objectmapping.ObjectMappingTest, test_conn.ConnectionTests, test_states.ServerStateTests, test_wsgi_ns.WSGI_Namespace_Test, test_sessionauthenticate.SessionAuthenticateTest, test_routes.RoutesDispatchTest, test_wsgiapps.WSGIAppTest, test_caching.CacheTest, test_core.CoreRequestHandlingTest, test_session.SessionTest, test_http.HTTPTests, test_http.ReferenceTests, test_httpauth.HTTPAuthTest

Nested Classes [hide private]

Inherited from webtest.WebCase: HTTP_CONN

Inherited from unittest.TestCase: failureException

Instance Methods [hide private]
 
prefix(self) source code
 
base(self) source code
 
exit(self) source code
 
tearDown(self)
Hook method for deconstructing the test fixture after testing it.
source code
 
getPage(self, url, headers=None, method='GET', body=None, protocol=None)
Open the url.
source code
 
assertErrorPage(self, status, message=None, pattern='')
Compare the response body with a built in error page.
source code

Inherited from webtest.WebCase: __call__, assertBody, assertHeader, assertInBody, assertMatchesBody, assertNoHeader, assertNotInBody, assertStatus, set_persistent

Inherited from unittest.TestCase: __init__, __repr__, __str__, assertAlmostEqual, assertAlmostEquals, assertEqual, assertEquals, assertFalse, assertNotAlmostEqual, assertNotAlmostEquals, assertNotEqual, assertNotEquals, assertRaises, assertTrue, assert_, countTestCases, debug, defaultTestResult, fail, failIf, failIfAlmostEqual, failIfEqual, failUnless, failUnlessAlmostEqual, failUnlessEqual, failUnlessRaises, id, run, setUp, shortDescription

Inherited from unittest.TestCase (private): _exc_info

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __setattr__

Class Variables [hide private]
  script_name = ''
  scheme = 'http'

Inherited from webtest.WebCase: HOST, PORT, PROTOCOL, console_height, interactive

Properties [hide private]

Inherited from webtest.WebCase: persistent

Inherited from object: __class__

Method Details [hide private]

exit(self)

source code 
Overrides: webtest.WebCase.exit

tearDown(self)

source code 
Hook method for deconstructing the test fixture after testing it.
Overrides: unittest.TestCase.tearDown
(inherited documentation)

getPage(self, url, headers=None, method='GET', body=None, protocol=None)

source code 
Open the url. Return status, headers, body.
Overrides: webtest.WebCase.getPage

assertErrorPage(self, status, message=None, pattern='')

source code 

Compare the response body with a built in error page.

The function will optionally look for the regexp pattern, within the exception embedded in the error page.