Beispiel #1
0
 def test_dotted(self, Partial):
     Partial('palladium.tests.test_util:TestPartial.myfunc', two=2)(one='one')
     assert self.calls == [('one', 2, 'three')]
     self.__class__.calls = []
Beispiel #2
0
 def test_it(self, Partial):
     Partial(self.myfunc, two=2)(one='one')
     assert self.calls == [('one', 2, 'three')]
     self.__class__.calls = []