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")
     )
Exemplo n.º 8
0
 def reads_bold(self):
     assert_equal(
         document_matchers.bold,
         read_document_matcher("b")
     )
 def reads_bold(self):
     assert_equal(
         document_matchers.bold,
         read_document_matcher("b")
     )
Exemplo n.º 10
0
 def reads_italic(self):
     assert_equal(
         document_matchers.italic,
         read_document_matcher("i")
     )
Exemplo n.º 11
0
 def reads_strikethrough(self):
     assert_equal(
         document_matchers.strikethrough,
         read_document_matcher("strike")
     )
Exemplo n.º 12
0
 def reads_underline(self):
     assert_equal(
         document_matchers.underline,
         read_document_matcher("u")
     )
Exemplo n.º 13
0
 def reads_italic(self):
     assert_equal(
         document_matchers.italic,
         read_document_matcher("i")
     )
Exemplo n.º 14
0
 def reads_paragraph_with_style_name(self):
     assert_equal(
         document_matchers.paragraph(style_name="Heading 1"),
         read_document_matcher("p[style-name='Heading 1']")
     )
Exemplo n.º 15
0
 def reads_strikethrough(self):
     assert_equal(
         document_matchers.strikethrough,
         read_document_matcher("strike")
     )
Exemplo n.º 16
0
 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)")
     )
Exemplo n.º 17
0
 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)")
     )