def reads_plain_paragraph(self): assert_equal( document_matchers.paragraph(), read_document_matcher("p") )
def reads_paragraph_with_style_id(self): assert_equal( document_matchers.paragraph(style_id="Heading1"), read_document_matcher("p.Heading1") )
def reads_run_with_style_id(self): assert_equal( document_matchers.run(style_id="Emphasis"), read_document_matcher("r.Emphasis") )
def reads_run_with_style_name(self): assert_equal( document_matchers.run(style_name="Emphasis"), read_document_matcher("r[style-name='Emphasis']") )
def reads_comment_reference(self): assert_equal( document_matchers.comment_reference, read_document_matcher("comment-reference") )
def reads_plain_run(self): assert_equal( document_matchers.run(), read_document_matcher("r") )
def reads_underline(self): assert_equal( document_matchers.underline, read_document_matcher("u") )
def reads_bold(self): assert_equal( document_matchers.bold, read_document_matcher("b") )
def reads_italic(self): assert_equal( document_matchers.italic, read_document_matcher("i") )
def reads_strikethrough(self): assert_equal( document_matchers.strikethrough, read_document_matcher("strike") )
def reads_paragraph_with_style_name(self): assert_equal( document_matchers.paragraph(style_name="Heading 1"), read_document_matcher("p[style-name='Heading 1']") )
def reads_paragraph_unordered_list(self): assert_equal( document_matchers.paragraph(numbering=documents.numbering_level(1, is_ordered=False)), read_document_matcher("p:unordered-list(2)") )
def reads_paragraph_ordered_list_with_num_fmt(self): assert_equal( document_matchers.paragraph(numbering=documents.numbering_level(0, is_ordered=True, num_fmt='decimal')), read_document_matcher("p:ordered-list(1,decimal)") )