tests.xmlreader_tests module#

Tests for xmlreader module.

class tests.xmlreader_tests.ExportDotTenTestCase(*args, **kwargs)[source]#

Bases: DisableSiteMixin, TestCase

XML export version 0.10 tests.

abstract_class = False#
test_edit_summary_decoding()[source]#

Test edit summaries are decoded.

test_pair()[source]#

Test reading the main page/user talk page pair file.

class tests.xmlreader_tests.ExportDotThreeTestCase(*args, **kwargs)[source]#

Bases: DisableSiteMixin, TestCase

XML export version 0.3 tests.

abstract_class = False#
test_XmlDumpAllRevs()[source]#

Test loading all revisions.

test_XmlDumpFirstRev()[source]#

Test loading the first revision.

test_XmlDumpRedirect()[source]#

Test XmlDump correctly parsing whether a page is a redirect.

test_XmlDump_compare_all()[source]#

Compare the different XML files using all revisions.

test_XmlDump_compare_single()[source]#

Compare the different XML files using only a single revision.

tests.xmlreader_tests.get_entries(filename, **kwargs)[source]#

Get all entries via XmlDump.