use assert_called_once_with because assert_called_once will always pass because that method does not exist on mock.MagicMock
Merge pull request #1816 from alanhamlett/master

use assert_called_once_with because assert_called_once will always pass ...