Module Import alias ImportFrom alias alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias Assign NameStore Str FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call NameLoad ListLoad Num Num Call NameLoad GeneratorExp AttributeLoad NameLoad attr comprehension NameStore AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad Expr Call NameLoad AttributeLoad NameLoad attr Str Expr Call NameLoad AttributeLoad NameLoad attr Num Expr Call NameLoad AttributeLoad NameLoad attr Num Expr Call NameLoad AttributeLoad NameLoad attr NameLoad Expr Call NameLoad AttributeLoad NameLoad attr ListLoad Assign NameStore Call NameLoad NameLoad Expr Call NameLoad AttributeLoad NameLoad attr Num Expr Call NameLoad AttributeLoad NameLoad attr Call NameLoad Str Expr Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr Num Expr Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call NameLoad AttributeLoad NameLoad attr NameLoad Expr Call NameLoad AttributeLoad NameLoad attr Str Expr Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr Num Expr Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr Num Expr Call NameLoad AttributeLoad NameLoad attr Str Expr Call NameLoad AttributeLoad NameLoad attr Str Expr Call NameLoad AttributeLoad NameLoad attr NameLoad Expr Call NameLoad AttributeLoad NameLoad attr Str Expr Call NameLoad AttributeLoad NameLoad attr Str Expr Call NameLoad AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad NameLoad Expr Call NameLoad AttributeLoad NameLoad attr Num Expr Call NameLoad AttributeLoad NameLoad attr Call NameLoad Str Expr Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call NameLoad AttributeLoad NameLoad attr Str Expr Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr Num Expr Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr Num Expr Call NameLoad AttributeLoad NameLoad attr Str Expr Call NameLoad AttributeLoad NameLoad attr NameLoad Expr Call NameLoad AttributeLoad NameLoad attr Str Expr Call NameLoad AttributeLoad NameLoad attr Str Expr Call NameLoad AttributeLoad NameLoad attr Str Expr Call NameLoad AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad NameLoad Expr Call NameLoad NameLoad NameLoad Expr Call NameLoad AttributeLoad NameLoad attr Str Expr Call NameLoad AttributeLoad NameLoad attr Num Expr Call NameLoad AttributeLoad NameLoad attr Num Expr Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call NameLoad AttributeLoad NameLoad attr ListLoad Str Assign NameStore Call NameLoad NameLoad Expr Call NameLoad NameLoad NameLoad Expr Call NameLoad AttributeLoad NameLoad attr Num Expr Call NameLoad AttributeLoad NameLoad attr Call NameLoad Str Expr Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call NameLoad AttributeLoad NameLoad attr NameLoad Expr Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr Num Expr Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr Num Expr Call NameLoad AttributeLoad NameLoad attr Str Expr Call NameLoad AttributeLoad NameLoad attr Str Expr Call NameLoad AttributeLoad NameLoad attr NameLoad Expr Call NameLoad AttributeLoad NameLoad attr Str Expr Call NameLoad AttributeLoad NameLoad attr Str Expr Call NameLoad Call NameLoad NameLoad NameLoad Assign NameStore Call NameLoad NameLoad Expr Call NameLoad NameLoad NameLoad Expr Call NameLoad AttributeLoad NameLoad attr Num Expr Call NameLoad AttributeLoad NameLoad attr Call NameLoad Str Expr Call NameLoad AttributeLoad NameLoad attr NameLoad Expr Call NameLoad AttributeLoad NameLoad attr NameLoad Expr Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr Num Expr Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr Num Expr Call NameLoad AttributeLoad NameLoad attr Str Expr Call NameLoad AttributeLoad NameLoad attr Str Expr Call NameLoad AttributeLoad NameLoad attr NameLoad Expr Call NameLoad AttributeLoad NameLoad attr Str Expr Call NameLoad AttributeLoad NameLoad attr Str Expr Call NameLoad Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad NameLoad Expr Call NameLoad AttributeLoad NameLoad attr Str Expr Call NameLoad AttributeLoad NameLoad attr Num Expr Call NameLoad AttributeLoad NameLoad attr Num Assign NameStore Call NameLoad NameLoad Expr Call NameLoad AttributeLoad NameLoad attr Str Expr Call NameLoad AttributeLoad NameLoad attr Num Expr Call NameLoad AttributeLoad NameLoad attr Num Assign NameStore Call NameLoad NameLoad Expr Call NameLoad AttributeLoad NameLoad attr Num Expr Call NameLoad AttributeLoad NameLoad attr Call NameLoad Str Expr Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call NameLoad AttributeLoad NameLoad attr NameLoad Expr Call NameLoad AttributeLoad NameLoad attr Str Expr Call NameLoad AttributeLoad NameLoad attr Str Expr Call NameLoad AttributeLoad NameLoad attr NameLoad Expr Call NameLoad AttributeLoad NameLoad attr Str Expr Call NameLoad AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call NameLoad NameLoad Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args defaults body Assign NameStore Str Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Expr Call NameLoad AttributeLoad NameLoad attr ListLoad Assign NameStore Call NameLoad NameLoad Expr Call NameLoad AttributeLoad NameLoad attr Str Expr Call NameLoad AttributeLoad NameLoad attr Num Expr Call NameLoad AttributeLoad NameLoad attr Num Assign NameStore Call NameLoad NameLoad Expr Call NameLoad AttributeLoad NameLoad attr Num Expr Call NameLoad AttributeLoad NameLoad attr Call NameLoad Str Expr Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr Num Expr Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call NameLoad AttributeLoad NameLoad attr Str Expr Call NameLoad AttributeLoad NameLoad attr Str Expr Call NameLoad AttributeLoad NameLoad attr NameLoad Expr Call NameLoad AttributeLoad NameLoad attr Str Expr Call NameLoad AttributeLoad NameLoad attr Str Assign NameStore Call NameLoad NameLoad Expr Call NameLoad AttributeLoad NameLoad attr Num Expr Call NameLoad AttributeLoad NameLoad attr Call NameLoad Str Expr Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call NameLoad AttributeLoad NameLoad attr Str Expr Call NameLoad AttributeLoad NameLoad attr Str Expr Call NameLoad AttributeLoad NameLoad attr Str Expr Call NameLoad AttributeLoad NameLoad attr Str Expr Call NameLoad AttributeLoad NameLoad attr Str decorator_list
N/A N/A io nose.tools eq_ assert_is_instance types Timestamp iterator Iterator comment Comment text Text revision Revision page Page N/A SAMPLE_XML 
<mediawiki xmlns="http://www.mediawiki.org/xml/export-0.8/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http
://www.mediawiki.org/xml/export-0.8/ http://www.mediawiki.org/xml/export-0.8.xsd" version="0.8" xml:lang="en">
  <siteinfo>
    <sitename>Wikipedia</sitename>
    <base>http://en.wikipedia.org/wiki/Main_Page</base>
    <generator>MediaWiki 1.22wmf2</generator>
    <case>first-letter</case>
    <namespaces>
      <namespace key="0" case="first-letter" />
      <namespace key="1" case="first-letter">Talk</namespace>
    </namespaces>
  </siteinfo>
  <page>
    <title>Foo</title>
    <ns>0</ns>
    <id>1</id>
    <revision beginningofpage="true">
      <id>1</id>
      <timestamp>2004-08-09T09:04:08Z</timestamp>
      <contributor>
        <username>Gen0cide</username>
        <id>92182</id>
      </contributor>
      <text xml:space="preserve" bytes="234" id="55">Revision 1 text</text>
      <sha1>g9chqqg94myzq11c56ixvq7o1yg75n9</sha1>
      <model>wikitext</model>
      <format>text/x-wiki</format>
    </revision>
    <revision>
      <id>2</id>
      <timestamp>2004-08-10T09:04:08Z</timestamp>
      <contributor>
        <ip>222.152.210.109</ip>
      </contributor>
      <text xml:space="preserve" bytes="235" id="56">Revision 2 text</text>
      <sha1>g9chqqg94myzq11c56ixvq7o1yg75n9</sha1>
      <model>wikitext</model>
      <comment>Comment 2</comment>
      <format>text/x-wiki</format>
    </revision>
  </page>
  <page>
    <title>Bar</title>
    <ns>1</ns>
    <id>2</id>
    <redirect title="Computer accessibility" />
    <restrictions>edit=sysop:move=sysop</restrictions>
    <revision beginningofpage="true">
      <id>3</id>
      <timestamp>2004-08-11T09:04:08Z</timestamp>
      <contributor>
        <ip>222.152.210.22</ip>
      </contributor>
      <text xml:space="preserve" bytes="236" id="57">Revision 3 text</text>
      <sha1>g9chqqg94myzq11c56ixvq7o1yg75n9</sha1>
      <model>wikitext</model>
      <format>text/x-wiki</format>
    </revision>
    <revision>
      <id>4</id>
      <timestamp>2004-08-12T09:04:08Z</timestamp>
      <text id="58" bytes="237" />
      <sha1>6ixvq7o1yg75n9g9chqqg94myzq11c5</sha1>
      <model>wikitext</model>
      <format>text/x-wiki</format>
    </revision>
  </page>
</mediawiki> test_complete N/A N/A N/A N/A N/A f N/A N/A io StringIO SAMPLE_XML N/A dump N/A N/A Iterator from_file f N/A N/A eq_ N/A 0 1 N/A list N/A N/A ns id N/A ns N/A dump namespaces N/A page N/A next dump N/A N/A eq_ N/A page title Foo N/A N/A eq_ N/A page namespace 0 N/A N/A eq_ N/A page id 1 N/A N/A eq_ N/A page redirect None N/A N/A eq_ N/A page restrictions N/A N/A revision N/A next page N/A N/A eq_ N/A revision id 1 N/A N/A eq_ N/A revision timestamp N/A Timestamp 2004-08-09T09:04:08Z N/A N/A eq_ N/A N/A revision contributor id 92182 N/A N/A eq_ N/A N/A revision contributor user_text Gen0cide N/A N/A assert_is_instance N/A revision text Text N/A N/A eq_ N/A revision text Revision 1 text N/A N/A eq_ N/A N/A revision text bytes 234 N/A N/A eq_ N/A N/A revision text id 55 N/A N/A eq_ N/A revision text Revision 1 text N/A N/A eq_ N/A revision sha1 g9chqqg94myzq11c56ixvq7o1yg75n9 N/A N/A eq_ N/A revision comment None N/A N/A eq_ N/A revision model wikitext N/A N/A eq_ N/A revision format text/x-wiki N/A N/A eq_ N/A revision beginningofpage True N/A revision N/A next page N/A N/A eq_ N/A revision id 2 N/A N/A eq_ N/A revision timestamp N/A Timestamp 2004-08-10T09:04:08Z N/A N/A eq_ N/A N/A revision contributor id None N/A N/A eq_ N/A N/A revision contributor user_text 222.152.210.109 N/A N/A eq_ N/A revision text Revision 2 text N/A N/A eq_ N/A N/A revision text bytes 235 N/A N/A eq_ N/A N/A revision text id 56 N/A N/A eq_ N/A revision sha1 g9chqqg94myzq11c56ixvq7o1yg75n9 N/A N/A assert_is_instance N/A revision comment Comment N/A N/A eq_ N/A revision comment Comment 2 N/A N/A eq_ N/A revision model wikitext N/A N/A eq_ N/A revision format text/x-wiki N/A N/A eq_ N/A revision beginningofpage False N/A page N/A next dump N/A N/A assert_is_instance page Page N/A N/A eq_ N/A page title Bar N/A N/A eq_ N/A page namespace 1 N/A N/A eq_ N/A page id 2 N/A N/A eq_ N/A N/A page redirect title Computer accessibility N/A N/A eq_ N/A page restrictions N/A edit=sysop:move=sysop N/A revision N/A next page N/A N/A assert_is_instance revision Revision N/A N/A eq_ N/A revision id 3 N/A N/A eq_ N/A revision timestamp N/A Timestamp 2004-08-11T09:04:08Z N/A N/A eq_ N/A N/A revision contributor id None N/A N/A eq_ N/A N/A revision contributor user_text 222.152.210.22 N/A N/A assert_is_instance N/A revision text Text N/A N/A eq_ N/A N/A revision text bytes 236 N/A N/A eq_ N/A N/A revision text id 57 N/A N/A eq_ N/A revision text Revision 3 text N/A N/A eq_ N/A revision sha1 g9chqqg94myzq11c56ixvq7o1yg75n9 N/A N/A eq_ N/A revision comment None N/A N/A eq_ N/A revision model wikitext N/A N/A eq_ N/A revision format text/x-wiki N/A N/A assert_is_instance N/A str page str N/A revision N/A next page N/A N/A assert_is_instance revision Revision N/A N/A eq_ N/A revision id 4 N/A N/A eq_ N/A revision timestamp N/A Timestamp 2004-08-12T09:04:08Z N/A N/A eq_ N/A revision contributor None N/A N/A assert_is_instance N/A revision text Text N/A N/A eq_ N/A N/A revision text bytes 237 N/A N/A eq_ N/A N/A revision text id 58 N/A N/A eq_ N/A revision text N/A N/A eq_ N/A revision sha1 6ixvq7o1yg75n9g9chqqg94myzq11c5 N/A N/A eq_ N/A revision comment None N/A N/A eq_ N/A revision model wikitext N/A N/A eq_ N/A revision format text/x-wiki N/A N/A assert_is_instance N/A str revision str N/A test_skipping N/A N/A N/A N/A N/A f N/A N/A io StringIO SAMPLE_XML N/A dump N/A N/A Iterator from_file f N/A page N/A next dump N/A N/A eq_ N/A page title Foo N/A N/A eq_ N/A page namespace 0 N/A N/A eq_ N/A page id 1 N/A page N/A next dump N/A N/A eq_ N/A page title Bar N/A N/A eq_ N/A page namespace 1 N/A N/A eq_ N/A page id 2 N/A revision N/A next page N/A N/A eq_ N/A revision id 3 N/A N/A eq_ N/A revision timestamp N/A Timestamp 2004-08-11T09:04:08Z N/A N/A eq_ N/A N/A revision contributor id None N/A N/A eq_ N/A N/A revision contributor user_text 222.152.210.22 N/A N/A assert_is_instance N/A revision text Text N/A N/A eq_ N/A revision text Revision 3 text N/A N/A eq_ N/A revision sha1 g9chqqg94myzq11c56ixvq7o1yg75n9 N/A N/A eq_ N/A revision comment None N/A N/A eq_ N/A revision model wikitext N/A N/A eq_ N/A revision format text/x-wiki N/A test_serialization N/A N/A N/A N/A N/A f N/A N/A io StringIO SAMPLE_XML N/A dump N/A N/A Iterator from_file f N/A N/A eq_ dump N/A N/A Iterator deserialize N/A N/A dump serialize N/A test_from_page_xml N/A N/A N/A N/A N/A page_xml 
    <page>
      <title>Foo</title>
      <ns>0</ns>
      <id>1</id>
      <revision>
        <id>1</id>
        <timestamp>2004-08-09T09:04:08Z</timestamp>
        <contributor>
          <username>Gen0cide</username>
          <id>92182</id>
        </contributor>
        <text xml:space="preserve">Revision 1 text</text>
        <sha1>g9chqqg94myzq11c56ixvq7o1yg75n9</sha1>
        <model>wikitext</model>
        <format>text/x-wiki</format>
      </revision>
      <revision>
        <id>2</id>
        <timestamp>2004-08-10T09:04:08Z</timestamp>
        <contributor>
          <ip>222.152.210.109</ip>
        </contributor>
        <text xml:space="preserve">Revision 2 text</text>
        <sha1>g9chqqg94myzq11c56ixvq7o1yg75n9</sha1>
        <model>wikitext</model>
        <comment>Comment 2</comment>
        <format>text/x-wiki</format>
      </revision>
    </page>
     N/A dump N/A N/A Iterator from_page_xml N/A N/A io StringIO page_xml N/A N/A eq_ N/A dump namespaces N/A N/A page N/A next dump N/A N/A eq_ N/A page title Foo N/A N/A eq_ N/A page namespace 0 N/A N/A eq_ N/A page id 1 N/A revision N/A next page N/A N/A eq_ N/A revision id 1 N/A N/A eq_ N/A revision timestamp N/A Timestamp 2004-08-09T09:04:08Z N/A N/A eq_ N/A N/A revision contributor id 92182 N/A N/A eq_ N/A N/A revision contributor user_text Gen0cide N/A N/A eq_ N/A revision text Revision 1 text N/A N/A eq_ N/A revision sha1 g9chqqg94myzq11c56ixvq7o1yg75n9 N/A N/A eq_ N/A revision comment None N/A N/A eq_ N/A revision model wikitext N/A N/A eq_ N/A revision format text/x-wiki N/A revision N/A next page N/A N/A eq_ N/A revision id 2 N/A N/A eq_ N/A revision timestamp N/A Timestamp 2004-08-10T09:04:08Z N/A N/A eq_ N/A N/A revision contributor id None N/A N/A eq_ N/A N/A revision contributor user_text 222.152.210.109 N/A N/A eq_ N/A revision text Revision 2 text N/A N/A eq_ N/A revision sha1 g9chqqg94myzq11c56ixvq7o1yg75n9 N/A N/A eq_ N/A revision comment Comment 2 N/A N/A eq_ N/A revision model wikitext N/A N/A eq_ N/A revision format text/x-wiki N/A