from Test import Test
from sys import *
from io import *
from unisubs.deploy.deploy import *

class MultiArgLogNoStarTest(Test):

    def __init__( self ):
        self.name = "MultiArgLogNoStarTest"
        Test.__init__( self )
        
    def func( self, args, expected ):
        backup = sys.stdout
        sys.stdout = BytesIO()
        x = args[1].split("|")
        tuple_args = tuple(x)
        self.applylast(log_nostar, args[0], tuple_args, args[2])
        value = sys.stdout
        sys.stdout = backup
        actual = value.getvalue()[:-1] 
        return actual == expected, actual
            
    def applylast(self, func, arg1, arglist, *literalargs):
        return func(*((arg1,) + arglist + literalargs))

a57f2d2e62a92ba57a1af39ed13a56dd8d568906
<mask token>


class MultiArgLogNoStarTest(Test):
    <mask token>
    <mask token>

    def applylast(self, func, arg1, arglist, *literalargs):
        return func(*((arg1,) + arglist + literalargs))

<mask token>


class MultiArgLogNoStarTest(Test):

    def __init__(self):
        self.name = 'MultiArgLogNoStarTest'
        Test.__init__(self)
    <mask token>

    def applylast(self, func, arg1, arglist, *literalargs):
        return func(*((arg1,) + arglist + literalargs))

<mask token>


class MultiArgLogNoStarTest(Test):

    def __init__(self):
        self.name = 'MultiArgLogNoStarTest'
        Test.__init__(self)

    def func(self, args, expected):
        backup = sys.stdout
        sys.stdout = BytesIO()
        x = args[1].split('|')
        tuple_args = tuple(x)
        self.applylast(log_nostar, args[0], tuple_args, args[2])
        value = sys.stdout
        sys.stdout = backup
        actual = value.getvalue()[:-1]
        return actual == expected, actual

    def applylast(self, func, arg1, arglist, *literalargs):
        return func(*((arg1,) + arglist + literalargs))

from Test import Test
from sys import *
from io import *
from unisubs.deploy.deploy import *


class MultiArgLogNoStarTest(Test):

    def __init__(self):
        self.name = 'MultiArgLogNoStarTest'
        Test.__init__(self)

    def func(self, args, expected):
        backup = sys.stdout
        sys.stdout = BytesIO()
        x = args[1].split('|')
        tuple_args = tuple(x)
        self.applylast(log_nostar, args[0], tuple_args, args[2])
        value = sys.stdout
        sys.stdout = backup
        actual = value.getvalue()[:-1]
        return actual == expected, actual

    def applylast(self, func, arg1, arglist, *literalargs):
        return func(*((arg1,) + arglist + literalargs))

from Test import Test
from sys import *
from io import *
from unisubs.deploy.deploy import *

class MultiArgLogNoStarTest(Test):

    def __init__( self ):
        self.name = "MultiArgLogNoStarTest"
        Test.__init__( self )
        
    def func( self, args, expected ):
        backup = sys.stdout
        sys.stdout = BytesIO()
        x = args[1].split("|")
        tuple_args = tuple(x)
        self.applylast(log_nostar, args[0], tuple_args, args[2])
        value = sys.stdout
        sys.stdout = backup
        actual = value.getvalue()[:-1] 
        return actual == expected, actual
            
    def applylast(self, func, arg1, arglist, *literalargs):
        return func(*((arg1,) + arglist + literalargs))
