Back to index

python3.2  3.2.2
Private Member Functions
test.test_htmlparser.TestCaseBase Class Reference
Inheritance diagram for test.test_htmlparser.TestCaseBase:
Inheritance graph
[legend]

List of all members.

Private Member Functions

def _run_check
def _run_check_extra
def _parse_error

Detailed Description

Definition at line 73 of file test_htmlparser.py.


Member Function Documentation

def test.test_htmlparser.TestCaseBase._parse_error (   self,
  source 
) [private]

Definition at line 91 of file test_htmlparser.py.

00091 
00092     def _parse_error(self, source):
00093         def parse(source=source):
00094             parser = html.parser.HTMLParser()
00095             parser.feed(source)
00096             parser.close()
00097         self.assertRaises(html.parser.HTMLParseError, parse)
00098 

Here is the call graph for this function:

Here is the caller graph for this function:

def test.test_htmlparser.TestCaseBase._run_check (   self,
  source,
  expected_events,
  collector = None 
) [private]

Definition at line 75 of file test_htmlparser.py.

00075 
00076     def _run_check(self, source, expected_events, collector=None):
00077         if collector is None:
00078             collector = EventCollector()
00079         parser = collector
00080         for s in source:
00081             parser.feed(s)
00082         parser.close()
00083         events = parser.get_events()
00084         if events != expected_events:
00085             self.fail("received events did not match expected events\n"
00086                       "Expected:\n" + pprint.pformat(expected_events) +
00087                       "\nReceived:\n" + pprint.pformat(events))

Here is the call graph for this function:

Here is the caller graph for this function:

def test.test_htmlparser.TestCaseBase._run_check_extra (   self,
  source,
  events 
) [private]

Definition at line 88 of file test_htmlparser.py.

00088 
00089     def _run_check_extra(self, source, events):
00090         self._run_check(source, events, EventCollectorExtra())

Here is the call graph for this function:

Here is the caller graph for this function:


The documentation for this class was generated from the following file: