def pattern_set_fixture(self, request): pattFill_cxml, pattern, expected_cxml = request.param pattFill = element(pattFill_cxml) expected_xml = xml(expected_cxml) patt_fill = _PattFill(pattFill) return patt_fill, pattern, pattFill, expected_xml
def fore_color_fixture(self, request, color_, ColorFormat_from_colorchoice_parent_): pattFill_cxml, expected_cxml = request.param pattFill = element(pattFill_cxml) expected_xml = xml(expected_cxml) ColorFormat_from_colorchoice_parent_.return_value = color_ patt_fill = _PattFill(pattFill) return (patt_fill, pattFill, expected_xml, color_, ColorFormat_from_colorchoice_parent_)
def fore_color_fixture(self, request, color_, ColorFormat_from_colorchoice_parent_): pattFill_cxml, expected_cxml = request.param pattFill = element(pattFill_cxml) expected_xml = xml(expected_cxml) ColorFormat_from_colorchoice_parent_.return_value = color_ patt_fill = _PattFill(pattFill) return ( patt_fill, pattFill, expected_xml, color_, ColorFormat_from_colorchoice_parent_, )
def pattern_get_fixture(self, request): pattFill_cxml, expected_value = request.param pattFill = element(pattFill_cxml) patt_fill = _PattFill(pattFill) return patt_fill, expected_value
def fill_type_fixture(self): patt_fill = _PattFill(element('a:pattFill')) expected_value = MSO_FILL.PATTERNED return patt_fill, expected_value
def fill_type_fixture(self): patt_fill = _PattFill(element("a:pattFill")) expected_value = MSO_FILL.PATTERNED return patt_fill, expected_value