diff -r 374f501f4567 Lib/unittest/test/testmock/testmock.py --- a/Lib/unittest/test/testmock/testmock.py Sat Sep 12 17:36:44 2015 +0100 +++ b/Lib/unittest/test/testmock/testmock.py Sun Feb 07 22:01:06 2016 +0000 @@ -316,6 +316,12 @@ mock.assert_called_with(1, 2, 3, a='fish', b='nothing') + def test_assert_called_with_any(self): + m = MagicMock() + m(MagicMock()) + m.assert_called_with(mock.ANY) + + def test_assert_called_with_function_spec(self): def f(a, b, c, d=None): pass