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