def testNiceFormattingForKwargs(self): m = mock() m.strict = False inv = invocation.StubbedInvocation(m, 'bark', None) inv(**kwargs) assert repr(inv) == 'bark(**kwargs)'
def testNiceFormattingForEllipsis(self): m = mock() m.strict = False inv = invocation.StubbedInvocation(m, 'bark', None) inv(Ellipsis) assert repr(inv) == 'bark(...)'