52
52
def function(positional, *args, **kwargs):
53
53
output.append((positional, args, kwargs))
54
54
strace(function, "a", "b", c="c",
56
56
self.assertEqual([("a", ("b",), {"c":"c"})], output)
58
58
def test_strace_callable_result(self):
61
61
result, strace_result = strace(function,
63
63
self.assertEqual("foo", result)
64
64
self.assertIsInstance(strace_result, StraceResult)