Reviewed: https://review.openstack.org/119252 Committed: https://git.openstack.org/cgit/openstack/cliff/commit/?id=3ec92068f0e31e20be2c10249aa837c382a037ff Submitter: Jenkins Branch: master
commit 3ec92068f0e31e20be2c10249aa837c382a037ff Author: Michael Davies <email address hidden> Date: Fri Sep 5 08:56:40 2014 +0930
mock.assert_called_once() is not a valid method
mock.assert_called_once() is a no-op that tests nothing. Instead with mock.assert_called_once_with() should be used (or use assertEqual(1, mock_obj.call_count) if you don't want to check parameters).
Change-Id: Ib302f2e888306558535cdd3e5edf447809aee430 Partial-Bug: #1365751
Reviewed: https:/ /review. openstack. org/119252 /git.openstack. org/cgit/ openstack/ cliff/commit/ ?id=3ec92068f0e 31e20be2c10249a a837c382a037ff
Committed: https:/
Submitter: Jenkins
Branch: master
commit 3ec92068f0e31e2 0be2c10249aa837 c382a037ff
Author: Michael Davies <email address hidden>
Date: Fri Sep 5 08:56:40 2014 +0930
mock. assert_ called_ once() is not a valid method
mock. assert_ called_ once() is a no-op that tests nothing. Instead called_ once_with( ) should be used (or use call_count) if you don't want to check
with mock.assert_
assertEqual(1, mock_obj.
parameters).
Change-Id: Ib302f2e8883065 58535cdd3e5edf4 47809aee430
Partial-Bug: #1365751