Exemple #1
0
    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
Exemple #2
0
    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
Exemple #3
0
    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_)
Exemple #4
0
    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_,
        )
Exemple #5
0
    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
Exemple #6
0
 def fill_type_fixture(self):
     patt_fill = _PattFill(element('a:pattFill'))
     expected_value = MSO_FILL.PATTERNED
     return patt_fill, expected_value
Exemple #7
0
    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
Exemple #8
0
 def fill_type_fixture(self):
     patt_fill = _PattFill(element("a:pattFill"))
     expected_value = MSO_FILL.PATTERNED
     return patt_fill, expected_value