def it_can_validate_a_hex_RGB_string(self, valid_fixture):
        str_value, exception = valid_fixture
        if exception is None:
            try:
                ST_HexColorRGB.validate(str_value)
            except __HOLE__:
                raise AssertionError(
                    "string '%s' did not validate" % str_value
                )
        else:
            with pytest.raises(exception):
                ST_HexColorRGB.validate(str_value)
dataset/ETHPy150Open scanny/python-pptx/tests/oxml/test_simpletypes.py/DescribeST_HexColorRGB.it_can_validate_a_hex_RGB_string