# Path: testsuite/cases/base.py
# def rpartial(func, *args, **keywords):
#     """
#     right partial — same as functools.partial, but pass function args first
#     """
#     def newfunc(*fargs, **fkeywords):
#         newkeywords = keywords.copy()
#         newkeywords.update(fkeywords)
#         return func(*(fargs + args), **newkeywords)
#     newfunc.func = func
#     newfunc.args = args
#     newfunc.keywords = keywords
#     return newfunc
# 
# Path: testsuite/cases/wand.py
# class WandTestCase(BaseTestCase):
#     def __init__(self, *args, **kwargs):
#     def create_test_data(self):
#     def __del__(self):
#     def blur(self, radius, sigma):
#     def hald_lut(self, hald_image):


from .base import rpartial
from .wand import Image, WandTestCase


class RotateRightCase(WandTestCase):
    def handle_args(self, name, operation):
        self.name = name
        self.operation = operation

    def runner(self, im):
        with im.clone() as im:
            self.operation(im)

    def readable_args(self):
        return [self.name]


cases = [

# Path: testsuite/cases/base.py
# def rpartial(func, *args, **keywords):
#     """
#     right partial — same as functools.partial, but pass function args first
#     """
#     def newfunc(*fargs, **fkeywords):
#         newkeywords = keywords.copy()
#         newkeywords.update(fkeywords)
#         return func(*(fargs + args), **newkeywords)
#     newfunc.func = func
#     newfunc.args = args
#     newfunc.keywords = keywords
#     return newfunc
# 
# Path: testsuite/cases/wand.py
# class WandTestCase(BaseTestCase):
#     def __init__(self, *args, **kwargs):
#     def create_test_data(self):
#     def __del__(self):
#     def blur(self, radius, sigma):
#     def hald_lut(self, hald_image):


# Path: testsuite/cases/wand_rotate_right.py
from .base import rpartial
from .wand import Image, WandTestCase



class RotateRightCase(WandTestCase):
    def handle_args(self, name, operation):
        self.name = name
        self.operation = operation

    def runner(self, im):
        with im.clone() as im:
            self.operation(im)

    def readable_args(self):
        return [self.name]


cases = [

    rpartial(RotateRightCase, 'Flop', Image.flop),