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 = []
def test_it(self, Partial): Partial(self.myfunc, two=2)(one='one') assert self.calls == [('one', 2, 'three')] self.__class__.calls = []