Example #1
0
 def it_provides_access_to_the_font_of_the_run(self, r_, _Font_, rPr_,
                                               font_):
     run = _Run(r_, None)
     font = run.font
     r_.get_or_add_rPr.assert_called_once_with()
     _Font_.assert_called_once_with(rPr_)
     assert font == font_
Example #2
0
 def it_provides_access_to_the_font_of_the_run(
         self, r_, _Font_, rPr_, font_):
     run = _Run(r_, None)
     font = run.font
     r_.get_or_add_rPr.assert_called_once_with()
     _Font_.assert_called_once_with(rPr_)
     assert font == font_
Example #3
0
 def run(self, r):
     return _Run(r, None)
Example #4
0
 def text_set_fixture(self, request):
     r_cxml, new_value, expected_r_cxml = request.param
     run = _Run(element(r_cxml), None)
     expected_xml = xml(expected_r_cxml)
     return run, new_value, expected_xml
Example #5
0
 def text_get_fixture(self):
     r = element('a:r/a:t"foobar"')
     run = _Run(r, None)
     return run, 'foobar'
Example #6
0
 def hyperlink_fixture(self, _Hyperlink_, hlink_):
     r = element('a:r/a:rPr')
     rPr = r.rPr
     run = _Run(r, None)
     return run, rPr, _Hyperlink_, hlink_
Example #7
0
 def font_fixture(self, Font_, font_):
     r = element('a:r/a:rPr')
     rPr = r.rPr
     run = _Run(r, None)
     return run, rPr, Font_, font_
Example #8
0
 def run(self, r):
     return _Run(r, None)
Example #9
0
 def text_set_fixture(self, request):
     r_cxml, new_value, expected_r_cxml = request.param
     run = _Run(element(r_cxml), None)
     expected_xml = xml(expected_r_cxml)
     return run, new_value, expected_xml
Example #10
0
 def text_get_fixture(self):
     r = element('a:r/a:t"foobar"')
     run = _Run(r, None)
     return run, 'foobar'
Example #11
0
 def hyperlink_fixture(self, _Hyperlink_, hlink_):
     r = element('a:r/a:rPr')
     rPr = r.rPr
     run = _Run(r, None)
     return run, rPr, _Hyperlink_, hlink_
Example #12
0
 def font_fixture(self, Font_, font_):
     r = element('a:r/a:rPr')
     rPr = r.rPr
     run = _Run(r, None)
     return run, rPr, Font_, font_