TestFun/MaximKornilov
TestFun/Egor_Feklisov
f1class Tester:f1class Tester:
22
3    def __init__(self, func):3    def __init__(self, func):
4        self.func = func4        self.func = func
55
n6    def __call__(self, suite, exceptions=()):n6    def __call__(self, suite, allowed=()):
7        result = 07        ret = 0
8        for tup in suite:8        for ii in suite:
9            try:9            try:
n10                self.func(*tup)n10                self.func(*ii)
11            except (*exceptions,):11            except (*allowed,):
12                result = -112                ret = -1
13            except:13            except:
t14                return 1t14                ret = 1
15        return result15        return ret
Legends
Colors
 Added 
Changed
Deleted
Links
(f)irst change
(n)ext change
(t)op