Module Expr Str Import alias alias alias alias Import alias Import alias Import alias Import alias Import alias ImportFrom alias ImportFrom alias ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body If BoolOpOr AttributeLoad NameLoad attr AttributeLoad NameLoad attr body If BoolOpOr AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Return Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Expr Call NameLoad NameLoad Assign NameStore Call NameLoad BinOpSub Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr If UnaryOpNot Call AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign TupleStore NameStore NameStore Call NameLoad NameLoad TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr If NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str NameLoad If NameLoad body If NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Return NameLoad decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Str If CompareIs NameLoad NameLoad body If UnaryOpNot NameLoad body Raise Call NameLoad BinOpMod Str NameLoad orelse Assign NameStore SubscriptLoad NameLoad Slice While NameLoad body Assign NameStore Call AttributeLoad Str attr NameLoad If CompareIn NameLoad AttributeLoad NameLoad attr body Assign NameStore Call NameLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Break orelse TryExcept body Assign NameStore Call NameLoad NameLoad Break handlers ExceptHandler type NameLoad body Delete SubscriptDel NameLoad Index Num If UnaryOpNot NameLoad body Raise Assign NameStore SubscriptLoad NameLoad Slice Num Assign NameStore NameLoad For NameStore NameLoad body Assign NameStore Call NameLoad NameLoad NameLoad If CompareEq Call NameLoad NameLoad AttributeLoad NameLoad attr body Return Call AttributeLoad NameLoad attr NameLoad orelse If BoolOpAnd Call NameLoad NameLoad TupleLoad NameLoad AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad body Return Call AttributeLoad NameLoad attr NameLoad orelse If CompareEq Call NameLoad NameLoad AttributeLoad NameLoad attr body Return Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr orelse If Call NameLoad NameLoad body Assign NameStore Call NameLoad If BoolOpAnd UnaryOpNot Call NameLoad NameLoad NameLoad UnaryOpNot Call NameLoad NameLoad NameLoad body Raise Call NameLoad BinOpMod Str TupleLoad NameLoad NameLoad Return NameLoad orelse Raise Call NameLoad BinOpMod Str NameLoad decorator_list decorator_list TryExcept body Import alias FunctionDef arguments args defaults body Return Call AttributeLoad NameLoad attr decorator_list handlers ExceptHandler type NameLoad body Import alias alias FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad TryFinally body Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Num finalbody Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list ClassDef bases NameLoad body Assign NameStore Str Assign NameStore Num Assign NameStore AttributeLoad NameLoad attr FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad Str NameLoad body Expr Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign NameStore Call NameLoad NameLoad NameLoad NameLoad NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign TupleStore AttributeStore NameLoad attr AttributeStore NameLoad attr AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr ListComp TupleLoad Str NameLoad comprehension TupleStore NameStore NameStore AttributeLoad NameLoad attr CompareEq Call AttributeLoad NameLoad attr Str If AttributeLoad NameLoad attr body Raise Call NameLoad Return NameLoad decorator_list Assign NameStore NameLoad Assign NameStore Num FunctionDef arguments args NameParam NameParam defaults body If UnaryOpNot AttributeLoad NameLoad attr body Raise Call AttributeLoad NameLoad attr NameLoad Print Print Str NameLoad Assign NameStore Str Print NameLoad While NameLoad body Assign NameStore Call AttributeLoad Call NameLoad attr If CompareNotIn NameLoad Str body Continue Print Call AttributeLoad NameLoad attr If CompareEq NameLoad Str body For TupleStore NameStore NameStore Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr body If CompareEq BinOpMod BinOpAdd NameLoad Num AttributeLoad NameLoad attr Num body Print Str Assign NameStore Call AttributeLoad Call NameLoad attr Print Str If CompareEq NameLoad Str body Break Print NameLoad orelse If CompareEq NameLoad Str body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr orelse If CompareEq NameLoad Str body Print AttributeLoad NameLoad attr orelse If CompareEq NameLoad Str body Print AttributeLoad NameLoad attr orelse If CompareEq NameLoad Str body Return orelse If CompareEq NameLoad Str body Raise Call AttributeLoad NameLoad attr NameLoad orelse If CompareEq NameLoad Str body Expr Call AttributeLoad NameLoad attr Print NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body If CompareIs NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad If Call NameLoad NameLoad Str body Assign NameStore Call NameLoad NameLoad AttributeLoad NameLoad attr orelse If Call NameLoad NameLoad Str body Assign NameStore Call NameLoad NameLoad AttributeLoad NameLoad attr orelse Raise Call NameLoad BinOpMod Str NameLoad TryFinally body TryExcept body Expr Call AttributeLoad NameLoad attr handlers ExceptHandler type TupleLoad NameLoad NameLoad body Raise ExceptHandler body Expr Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr Return Assign NameStore Num TryExcept body Expr Call NameLoad Assign NameStore Num handlers ExceptHandler type AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr ExceptHandler type TupleLoad NameLoad NameLoad body Raise ExceptHandler body Expr Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr TryExcept body Expr Call AttributeLoad NameLoad attr handlers ExceptHandler type TupleLoad NameLoad NameLoad body Raise ExceptHandler body Expr Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr Assign NameStore Num If NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad finalbody Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str If Call NameLoad NameLoad NameLoad body If UnaryOpNot CompareEq AttributeLoad NameLoad attr NameLoad body If CompareIs NameLoad NameLoad body Assign NameStore BinOpMod Str TupleLoad Repr AttributeLoad NameLoad attr Repr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad orelse If UnaryOpNot CompareIn AttributeLoad NameLoad attr NameLoad body If CompareIs NameLoad NameLoad body Assign NameStore BinOpMod Str TupleLoad Repr AttributeLoad NameLoad attr Repr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad NameLoad body Expr Str Assign NameStore Call AttributeLoad NameLoad attr For TupleStore NameStore NameStore AttributeLoad NameLoad attr body If CompareEq Call AttributeLoad NameLoad attr NameLoad body If BoolOpOr CompareIs NameLoad NameLoad CompareEq Call NameLoad NameLoad NameLoad body Return If CompareIs NameLoad NameLoad body If CompareIs NameLoad NameLoad body Assign NameStore BinOpMod Str Repr NameLoad orelse Assign NameStore BinOpMod Str TupleLoad Repr NameLoad Repr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore ListComp NameLoad comprehension TupleStore NameStore NameStore AttributeLoad NameLoad attr CompareEq Call AttributeLoad NameLoad attr NameLoad If NameLoad body If CompareIs NameLoad NameLoad body Assign NameStore BinOpMod Str Repr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str If CompareNotEq NameLoad AttributeLoad NameLoad attr body If CompareIs NameLoad NameLoad body Assign NameStore BinOpMod Str TupleLoad Repr NameLoad Repr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str If CompareNotIn NameLoad AttributeLoad NameLoad attr body If CompareIs NameLoad NameLoad body Assign NameStore BinOpMod Str Repr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str If CompareIn NameLoad AttributeLoad NameLoad attr body If CompareIs NameLoad NameLoad body Assign NameStore BinOpMod Str Repr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad Num body Expr Str If CompareIs Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr NameLoad NameLoad body If CompareIs NameLoad NameLoad body Assign NameStore BinOpMod Str Repr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body Expr Str If CompareIs NameLoad NameLoad body Assign NameStore ListLoad Assign NameStore NameLoad For TupleStore NameStore NameStore NameLoad body If CompareEq Call AttributeLoad NameLoad attr Str body Assign NameStore NameLoad Break If UnaryOpNot NameLoad body Expr Call AttributeLoad NameLoad attr TupleLoad Str BinOpMod Str TupleLoad NameLoad NameLoad If CompareIn NameLoad TupleLoad Str Str body Assign NameStore NameLoad For TupleStore NameStore NameStore NameLoad body If CompareEq Call AttributeLoad NameLoad attr Str body Assign NameStore NameLoad Break If UnaryOpNot NameLoad body Expr Call AttributeLoad NameLoad attr TupleLoad Str Str Expr Call AttributeLoad NameLoad attr TupleLoad Str Call NameLoad Call NameLoad BoolOpOr NameLoad Str Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad Str NameLoad Str Num AttributeLoad NameLoad attr body Expr Str Assign NameStore Call NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad Assign NameStore Num While CompareLt NameLoad Num body TryExcept body Assign NameStore Call NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad For TupleStore NameStore NameStore NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr If CompareIsNot NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore BinOpMod Str TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore ListLoad For NameStore AttributeLoad AttributeLoad NameLoad attr attr body Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Str Num Expr Call AttributeLoad NameLoad attr TupleLoad Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Return TupleLoad NameLoad NameLoad NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr body AugAssignAdd NameStore Num If CompareGtE NameLoad Num body Raise orelse Expr Call AttributeLoad NameLoad attr Num decorator_list Assign NameStore ListLoad Assign NameStore NameLoad ClassDef bases NameLoad body Assign NameStore NameLoad decorator_list FunctionDef arguments args NameParam defaults NameLoad body Expr Str If CompareIs NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr If BoolOpOr NameLoad CompareIn SubscriptLoad NameLoad Index Num NameLoad body Return NameLoad orelse Assign AttributeStore NameLoad attr NameLoad Print Print Call AttributeLoad Str attr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list
N/A N/A Extensions to unittest for web frameworks.

Use the WebCase.getPage method to request a page from your HTTP server.

Framework Integration
=====================

If you have control over your server process, you can handle errors
in the server-side of the HTTP conversation a bit better. You must run
both the client (your WebCase tests) and the server in the same process
(but in separate threads, obviously).

When an error occurs in the framework, call server_error. It will print
the traceback to stdout, and keep any assertions you have from running
(the assumption is that, if the server errors, the page output won't be
of further significance to your tests).
 N/A os sys time re N/A types N/A pprint N/A socket N/A httplib N/A traceback unittest * unittest _TextTestResult TerseTestResult N/A _TextTestResult N/A printErrors N/A N/A self N/A N/A N/A N/A N/A self errors N/A self failures N/A N/A N/A N/A self dots N/A self showAll N/A N/A N/A N/A N/A self stream writeln N/A N/A N/A self printErrorList ERROR N/A self errors N/A N/A N/A self printErrorList FAIL N/A self failures N/A N/A TerseTestRunner N/A TextTestRunner N/A N/A A test runner class that displays results in textual form. _makeResult N/A N/A self N/A N/A N/A N/A TerseTestResult N/A self stream N/A self descriptions N/A self verbosity N/A run N/A N/A self test N/A N/A N/A Run the given test case or test suite. N/A result N/A N/A self _makeResult N/A startTime N/A N/A time time N/A N/A test result N/A timeTaken N/A float N/A N/A N/A time time startTime N/A N/A N/A result printErrors N/A N/A N/A N/A result wasSuccessful N/A N/A N/A N/A N/A self stream write FAILED ( N/A N/A failed errored N/A map len N/A N/A result failures N/A result errors N/A failed N/A N/A N/A N/A N/A self stream write N/A failures=%d failed N/A errored N/A N/A failed N/A N/A N/A N/A N/A self stream write ,  N/A N/A N/A N/A self stream write N/A errors=%d errored N/A N/A N/A N/A self stream writeln ) N/A result N/A N/A ReloadingTestLoader N/A TestLoader N/A loadTestsFromName N/A N/A self name module N/A None N/A N/A Return a suite of all tests cases given a string specifier.

        The name may resolve either to a module, a test case class, a
        test method within a test case class, or a callable object which
        returns a TestCase or TestSuite instance.

        The method optionally resolves the names relative to a given module.
         N/A parts N/A N/A name split . N/A N/A module None N/A N/A N/A parts N/A N/A N/A ValueError N/A incomplete test name: %s name N/A N/A parts_copy N/A parts N/A N/A parts_copy N/A N/A target N/A N/A . join parts_copy N/A N/A target N/A sys modules N/A N/A module N/A reload N/A N/A sys modules N/A target N/A N/A N/A N/A N/A module N/A __import__ target N/A N/A N/A N/A ImportError N/A N/A N/A parts_copy N/A -1 N/A N/A parts_copy N/A N/A N/A parts N/A parts N/A 1 N/A obj module N/A part parts N/A N/A obj N/A getattr obj part N/A N/A N/A type obj N/A types ModuleType N/A N/A N/A N/A self loadTestsFromModule obj N/A N/A N/A N/A isinstance obj N/A type N/A types ClassType N/A issubclass obj TestCase N/A N/A N/A N/A self loadTestsFromTestCase obj N/A N/A N/A N/A type obj N/A types UnboundMethodType N/A N/A N/A N/A obj im_class N/A obj __name__ N/A N/A N/A callable obj N/A N/A test N/A obj N/A N/A N/A N/A isinstance test TestCase N/A N/A isinstance test TestSuite N/A N/A N/A ValueError N/A calling %s returned %s, not a test N/A obj test N/A test N/A N/A N/A ValueError N/A don't know how to make test from: %s obj N/A N/A N/A N/A N/A msvcrt getchar N/A N/A N/A N/A N/A N/A N/A msvcrt getch N/A N/A N/A N/A ImportError N/A N/A tty termios getchar N/A N/A N/A N/A N/A fd N/A N/A N/A sys stdin fileno N/A old_settings N/A N/A termios tcgetattr fd N/A N/A N/A N/A N/A tty setraw N/A N/A N/A sys stdin fileno N/A ch N/A N/A N/A sys stdin read 1 N/A N/A N/A N/A termios tcsetattr fd N/A termios TCSADRAIN old_settings N/A ch N/A WebCase N/A TestCase N/A N/A HOST 127.0.0.1 N/A PORT 8000 N/A HTTP_CONN N/A httplib HTTPConnection getPage N/A N/A self url headers method body N/A None GET None N/A N/A Open the url with debugging support. Return status, headers, body. N/A N/A ServerError on False N/A N/A self url url N/A result N/A openURL url headers method body N/A self HOST N/A self PORT N/A self HTTP_CONN N/A N/A N/A self status N/A self headers N/A self body result N/A N/A self cookies N/A N/A Cookie v N/A N/A k v N/A self headers N/A N/A N/A k lower set-cookie N/A N/A ServerError on N/A N/A N/A ServerError N/A result N/A N/A interactive True N/A console_height 30 _handlewebError N/A N/A self msg N/A N/A N/A N/A N/A self interactive N/A N/A N/A N/A self failureException msg N/A N/A     ERROR: msg N/A p     Show: [B]ody [H]eaders [S]tatus [U]RL; [I]gnore, [R]aise, or sys.e[X]it >>  N/A p N/A True N/A N/A i N/A N/A N/A getchar upper N/A N/A i BHSUIRX N/A N/A N/A N/A N/A i upper N/A N/A i B N/A N/A N/A x line N/A enumerate N/A N/A N/A self body splitlines N/A N/A N/A N/A N/A x 1 N/A self console_height 0 N/A N/A <-- More -->
 N/A m N/A N/A N/A getchar lower N/A N/A N/A m q N/A N/A N/A line N/A N/A N/A i H N/A N/A N/A N/A pprint pprint N/A self headers N/A N/A N/A i S N/A N/A N/A self status N/A N/A N/A i U N/A N/A N/A self url N/A N/A N/A i I N/A N/A N/A N/A N/A i R N/A N/A N/A N/A self failureException msg N/A N/A N/A i X N/A N/A N/A N/A self exit N/A p N/A exit N/A N/A self N/A N/A N/A N/A N/A sys exit N/A __call__ N/A N/A self result N/A None N/A N/A N/A result None N/A N/A result N/A N/A self defaultTestResult N/A N/A N/A result startTest self N/A N/A hasattr self _testMethodName N/A N/A testMethod N/A getattr self N/A self _testMethodName N/A N/A N/A hasattr self _TestCase__testMethodName N/A N/A testMethod N/A getattr self N/A self _TestCase__testMethodName N/A N/A N/A AttributeError N/A Not sure how to get the test method in %s self N/A N/A N/A N/A N/A N/A N/A self setUp N/A N/A N/A N/A KeyboardInterrupt SystemExit N/A N/A N/A N/A N/A N/A N/A result addError self N/A N/A self _TestCase__exc_info N/A N/A ok 0 N/A N/A N/A N/A testMethod N/A ok 1 N/A N/A N/A N/A self failureException N/A N/A N/A N/A result addFailure self N/A N/A self _TestCase__exc_info N/A N/A N/A KeyboardInterrupt SystemExit N/A N/A N/A N/A N/A N/A N/A result addError self N/A N/A self _TestCase__exc_info N/A N/A N/A N/A N/A self tearDown N/A N/A N/A N/A KeyboardInterrupt SystemExit N/A N/A N/A N/A N/A N/A N/A result addError self N/A N/A self _TestCase__exc_info N/A ok 0 N/A ok N/A N/A N/A N/A result addSuccess self N/A N/A N/A N/A result stopTest self N/A assertStatus N/A N/A self status msg N/A None N/A N/A Fail if self.status != status. N/A N/A isinstance status basestring N/A N/A N/A N/A N/A self status status N/A N/A N/A msg None N/A N/A msg N/A Status (%s) != %s N/A N/A N/A self status N/A status N/A N/A N/A self _handlewebError msg N/A N/A N/A N/A N/A self status status N/A N/A N/A msg None N/A N/A msg N/A Status (%s) not in %s N/A N/A N/A self status N/A status N/A N/A N/A self _handlewebError msg N/A assertHeader N/A N/A self key value msg N/A None None N/A N/A Fail if (key, [value]) not in self.headers. N/A lowkey N/A N/A key lower N/A N/A k v N/A self headers N/A N/A N/A N/A N/A k lower lowkey N/A N/A N/A N/A value None N/A N/A str value v N/A N/A N/A N/A msg None N/A N/A N/A value None N/A N/A msg N/A %s not in headers N/A key N/A N/A msg N/A %s:%s not in headers N/A N/A key N/A value N/A N/A N/A self _handlewebError msg N/A assertNoHeader N/A N/A self key msg N/A None N/A N/A Fail if key in self.headers. N/A lowkey N/A N/A key lower N/A matches N/A k N/A N/A k v N/A self headers N/A N/A N/A k lower lowkey N/A matches N/A N/A N/A msg None N/A N/A msg N/A %s in headers N/A key N/A N/A N/A self _handlewebError msg N/A assertBody N/A N/A self value msg N/A None N/A N/A Fail if value != self.body. N/A N/A value N/A self body N/A N/A N/A msg None N/A N/A msg N/A expected body:
%s

actual body:
%s N/A N/A value N/A N/A self body N/A N/A N/A self _handlewebError msg N/A assertInBody N/A N/A self value msg N/A None N/A N/A Fail if value not in self.body. N/A N/A value N/A self body N/A N/A N/A msg None N/A N/A msg N/A %s not in body N/A value N/A N/A N/A self _handlewebError msg N/A assertNotInBody N/A N/A self value msg N/A None N/A N/A Fail if value in self.body. N/A N/A value N/A self body N/A N/A N/A msg None N/A N/A msg N/A %s found in body N/A value N/A N/A N/A self _handlewebError msg N/A assertMatchesBody N/A N/A self pattern msg flags N/A None 0 N/A N/A Fail if value (a regex pattern) is not in self.body. N/A N/A N/A N/A re search pattern N/A self body flags None N/A N/A N/A msg None N/A N/A msg N/A No match for %s in body N/A pattern N/A N/A N/A self _handlewebError msg N/A N/A cleanHeaders N/A N/A headers method body host port N/A N/A N/A Return request headers, with required headers added (if missing). N/A N/A headers None N/A N/A headers N/A N/A found False N/A N/A k v headers N/A N/A N/A N/A N/A k lower host N/A N/A found True N/A N/A N/A found N/A N/A N/A N/A headers append N/A Host N/A %s:%s N/A host port N/A N/A method N/A POST PUT N/A N/A found False N/A N/A k v headers N/A N/A N/A N/A N/A k lower content-type N/A N/A found True N/A N/A N/A found N/A N/A N/A N/A headers append N/A Content-Type application/x-www-form-urlencoded N/A N/A N/A headers append N/A Content-Length N/A str N/A len N/A body N/A headers N/A openURL N/A N/A url headers method body host port http_conn N/A None GET None 127.0.0.1 8000 N/A httplib HTTPConnection N/A N/A Open the given HTTP resource and return status, headers, and body. N/A headers N/A cleanHeaders headers method body host port N/A trial 0 N/A N/A trial 10 N/A N/A N/A N/A conn N/A http_conn host port N/A N/A N/A conn putrequest N/A N/A method upper url N/A N/A key value headers N/A N/A N/A N/A conn putheader key value N/A N/A N/A conn endheaders N/A N/A body None N/A N/A N/A N/A conn send body N/A response N/A N/A conn getresponse N/A status N/A %s %s N/A N/A response status N/A response reason N/A outheaders N/A N/A line N/A N/A response msg headers N/A N/A N/A key value N/A N/A line split : 1 N/A N/A N/A outheaders append N/A N/A N/A key strip N/A N/A value strip N/A outbody N/A N/A response read N/A N/A N/A conn close N/A N/A status outheaders outbody N/A N/A N/A N/A socket error N/A N/A trial 1 N/A N/A trial 10 N/A N/A N/A N/A N/A N/A time sleep 0.5 N/A N/A ignored_exceptions N/A N/A ignore_all False ServerError N/A Exception N/A N/A on False N/A server_error N/A N/A exc N/A None N/A N/A Server debug hook. Return True if exception handled, False if ignored.
    
    You probably want to wrap this, so you can still handle an error using
    your framework when it's ignored.
     N/A N/A exc None N/A N/A exc N/A N/A sys exc_info N/A N/A ignore_all N/A N/A exc N/A 0 ignored_exceptions N/A N/A False N/A N/A N/A ServerError on True N/A N/A N/A N/A join N/A N/A traceback format_exception exc N/A True N/A