use assert_called_once_with because assert_called_once will always pass ...

...because that method does not exist on mock.MagicMock

http://www.voidspace.org.uk/python/mock/mock.html#mock.Mock