Package lxml :: Module doctestcompare :: Class LXMLOutputChecker
[show private | hide private]
[frames | no frames]

Class LXMLOutputChecker

OutputChecker --+
                |
               LXMLOutputChecker

Known Subclasses:
LHTMLOutputChecker

Method Summary
  check_output(self, want, got, optionflags)
Return True iff the actual output from an example (got) matches the expected output (want).
  collect_diff(self, want, got, html, indent)
  collect_diff_end_tag(self, want, got)
  collect_diff_tag(self, want, got)
  collect_diff_text(self, want, got, strip)
  compare_docs(self, want, got)
  format_doc(self, doc, html, indent, prefix)
  format_end_tag(self, el)
  format_tag(self, el)
  format_text(self, text, strip)
  get_default_parser(self)
  get_parser(self, want, got, optionflags)
  html_empty_tag(self, el, html)
  output_difference(self, example, got, optionflags)
Return a string describing the differences between the expected output for a given example (example) and the actual output (got).
  text_compare(self, want, got, strip)
  _looks_like_markup(self, s)
    Inherited from OutputChecker
  _do_a_fancy_diff(self, want, got, optionflags)

Class Variable Summary
tuple empty_tags = ('param', 'img', 'area', 'br', 'basefont', ...

Method Details

check_output(self, want, got, optionflags)

Return True iff the actual output from an example (got) matches the expected output (want). These strings are always considered to match if they are identical; but depending on what option flags the test runner is using, several non-exact match types are also possible. See the documentation for TestRunner for more information about option flags.

Overrides:
doctest.OutputChecker.check_output (inherited documentation)

output_difference(self, example, got, optionflags)

Return a string describing the differences between the expected output for a given example (example) and the actual output (got). optionflags is the set of option flags used to compare want and got.

Overrides:
doctest.OutputChecker.output_difference (inherited documentation)

Class Variable Details

empty_tags

Type:
tuple
Value:
('param', 'img', 'area', 'br', 'basefont', 'input', 'base', 'meta', 'l\
ink')                                                                  

Generated by Epydoc 2.1 on Sat Aug 18 12:44:27 2007 http://epydoc.sf.net