# 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/pillow.py
# class PillowTestCase(BaseTestCase):
#     def create_test_data(self):
#     def resize(cls, self, size, resample=Image.NEAREST):
#     def gaussian_blur(cls, self, radius, n=3):
#     def getchannel(cls, self, channel):
#         L = math.sqrt(12.0 * float(radius) * radius / n + 1.0)


from .base import rpartial
from .pillow import Image, PillowTestCase


class RotateRightCase(PillowTestCase):
    def handle_args(self, name, runner):
        self.name = name
        self.runner = runner

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


cases = [
    rpartial(RotateRightCase, 'Flop',

# 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/pillow.py
# class PillowTestCase(BaseTestCase):
#     def create_test_data(self):
#     def resize(cls, self, size, resample=Image.NEAREST):
#     def gaussian_blur(cls, self, radius, n=3):
#     def getchannel(cls, self, channel):
#         L = math.sqrt(12.0 * float(radius) * radius / n + 1.0)


# Path: testsuite/cases/pillow_rotate_right.py
from .base import rpartial
from .pillow import Image, PillowTestCase



class RotateRightCase(PillowTestCase):
    def handle_args(self, name, runner):
        self.name = name
        self.runner = runner

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


cases = [
    rpartial(RotateRightCase, 'Flop',

        lambda im: im.transpose(Image.FLIP_LEFT_RIGHT)),