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_
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_
def run(self, r): return _Run(r, None)
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
def text_get_fixture(self): r = element('a:r/a:t"foobar"') run = _Run(r, None) return run, 'foobar'
def hyperlink_fixture(self, _Hyperlink_, hlink_): r = element('a:r/a:rPr') rPr = r.rPr run = _Run(r, None) return run, rPr, _Hyperlink_, hlink_
def font_fixture(self, Font_, font_): r = element('a:r/a:rPr') rPr = r.rPr run = _Run(r, None) return run, rPr, Font_, font_