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