TestFun/maksim.krasilnikov
TestFun/lngsv
f1class Tester:f1class Tester:
22
n3    def __init__(self, fun):n3    def __init__(self, foo):
4        self.fun = fun4        self.foo = foo
55
n6    def __call__(self, suitable, allowed=[]):n6    def __call__(self, suite, allowed=[]):
7        res = 07        res = 0
n8        for suit in suitable:n8        for s in suite:
9            try:9            try:
t10                self.fun(*suit)t10                self.foo(*s)
11            except tuple(allowed) as ex:11            except tuple(allowed) as e:
12                res = -112                res = -1
13            except Exception:13            except Exception:
14                return 114                return 1
15        return res15        return res
Legends
Colors
 Added 
Changed
Deleted
Links
(f)irst change
(n)ext change
(t)op