| Home | Trees | Index | Help |
|
|---|
| Package cherrypy :: Package test :: Module helper :: Class CPWebCase |
|
object--+ |TestCase--+ |WebCase--+ | CPWebCase
AmpleeTestBase,
TestFeatures| Method Summary | |
|---|---|
Compare the response body with a built in error page. | |
base(self)
| |
exit(self)
| |
Open the url. | |
prefix(self)
| |
Hook method for deconstructing the test fixture after testing it. | |
| Inherited from WebCase | |
| |
Fail if value != self.body. | |
Fail if (key, [value]) not in self.headers. | |
Fail if value not in self.body. | |
Fail if value (a regex pattern) is not in self.body. | |
Fail if key in self.headers. | |
Fail if value in self.body. | |
Fail if self.status != status. | |
Make our HTTP_CONN persistent (or not). | |
| Inherited from TestCase | |
Create an instance of the class that will use the named test method when executed. | |
| |
| |
Fail the test unless the expression is true. | |
Fail if the two objects are unequal as determined by their difference rounded to the given number of decimal places (default 7) and comparing to zero. | |
Fail if the two objects are unequal as determined by their difference rounded to the given number of decimal places (default 7) and comparing to zero. | |
Fail if the two objects are unequal as determined by the '==' operator. | |
Fail if the two objects are unequal as determined by the '==' operator. | |
Fail the test if the expression is true. | |
Fail if the two objects are equal as determined by their difference rounded to the given number of decimal places (default 7) and comparing to zero. | |
Fail if the two objects are equal as determined by their difference rounded to the given number of decimal places (default 7) and comparing to zero. | |
Fail if the two objects are equal as determined by the '==' operator. | |
Fail if the two objects are equal as determined by the '==' operator. | |
Fail unless an exception of class excClass is thrown by callableObj when invoked with arguments args and keyword arguments kwargs. | |
Fail the test unless the expression is true. | |
| |
Run the test without collecting errors in a TestResult | |
| |
Fail immediately, with the given message. | |
Fail the test if the expression is true. | |
Fail if the two objects are equal as determined by their difference rounded to the given number of decimal places (default 7) and comparing to zero. | |
Fail if the two objects are equal as determined by the '==' operator. | |
Fail the test unless the expression is true. | |
Fail if the two objects are unequal as determined by their difference rounded to the given number of decimal places (default 7) and comparing to zero. | |
Fail if the two objects are unequal as determined by the '==' operator. | |
Fail unless an exception of class excClass is thrown by callableObj when invoked with arguments args and keyword arguments kwargs. | |
| |
| |
Hook method for setting up the test fixture before exercising it. | |
Returns a one-line description of the test, or None if no description has been provided. | |
| Inherited from object | |
x.__delattr__('name') <==> del x.name | |
x.__getattribute__('name') <==> x.name | |
x.__hash__() <==> hash(x) | |
T.__new__(S, ...) -> a new object with type S, a subtype of T | |
helper for pickle | |
helper for pickle | |
x.__setattr__('name', value) <==> x.name = value | |
| Property Summary | |
|---|---|
| Inherited from WebCase | |
persistent | |
| Class Variable Summary | |
|---|---|
str |
scheme = 'http'
|
str |
script_name = ''
|
| Inherited from WebCase | |
int |
console_height = 30 |
str |
HOST = '127.0.0.1'
|
bool |
interactive = True
|
int |
PORT = 8000 |
str |
PROTOCOL = 'HTTP/1.1'
|
| Method Details |
|---|
assertErrorPage(self, status, message=None, pattern='')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. |
getPage(self, url, headers=None, method='GET', body=None, protocol=None)Open the url. Return status, headers, body.
|
tearDown(self)Hook method for deconstructing the test fixture after testing it.
|
| Class Variable Details |
|---|
scheme
|
script_name
|
| Home | Trees | Index | Help |
|
|---|
| Generated by Epydoc 2.1 on Thu Jul 19 15:32:17 2007 | http://epydoc.sf.net |