Replace assert_called_twice with self.assertEqual(2, <...>.call_count).
Replace assert_called_once() with self.assertEqual(1, <...>.call_count).
Use a list of calls for the assert_has_calls function.
Co-Author: Victor Ryzhenkin <email address hidden>
Change-Id: Idccd60140c8e5195c31291f03afc99ab3b1eb569
Closes-Bug: 1473369
Reviewed: https:/ /review. openstack. org/200457 /git.openstack. org/cgit/ openstack/ python- muranoclient/ commit/ ?id=d0560a96c6b 2301247cc1fff88 962ef86fbf42ed
Committed: https:/
Submitter: Jenkins
Branch: master
commit d0560a96c6b2301 247cc1fff88962e f86fbf42ed
Author: Sergey Vilgelm <email address hidden>
Date: Fri Jul 10 13:12:17 2015 +0300
Fix the unit tests with wrong using of mock
Replace assert_called_twice with self.assertEqual(2, <...>.call_count). called_ once() with self.assertEqual(1, <...>.call_count).
Replace assert_
Use a list of calls for the assert_has_calls function.
Co-Author: Victor Ryzhenkin <email address hidden> 95c31291f03afc9 9ab3b1eb569
Change-Id: Idccd60140c8e51
Closes-Bug: 1473369