def test_call_args_py35(): m = MagicMock() m(1, 2, 3, a=4) v = pformat(m.call_args) assert v == """\ _Call( (1, 2, 3), {'a': 4}, )"""