def _parse_anchor(value):
    valid_anchor_values = [a for a in vars(Anchor) if a[0].isupper()]
    anchor_attr = value.upper().replace('-', '_')
    if anchor_attr not in valid_anchor_values:
        raise exc.InvalidResizeSettingError(
            'Not a valid anchor value. Valid ones '
            'are {0}'.format(valid_anchor_values)
        )
    return getattr(Anchor, anchor_attr)
Start and run the mock S3 server.
dataset/ETHPy150Open jmagnusson/Flask-Resize/flask_resize/__init__.py/_parse_anchor--crossover with--dataset/ETHPy150Open girder/girder/tests/mock_s3.py/MockS3Server.run