use assert_called_once_with because assert_called_once will always pass because that method does not exist on mock.MagicMock