Don't use Mock.called_once_with that does not exist
Class mock.Mock does not exist method "called_once_with()", it just
exists method "assert_called_once_with()". "called_once_with()" does
nothing because it's a mock object.
In OSC, only one place is still using "called_once_with()". Fix it.
Reviewed: https:/ /review. openstack. org/282188 /git.openstack. org/cgit/ openstack/ python- openstackclient /commit/ ?id=48681af86a1 dfd50a8e90a9d7c d9068417cc52a9
Committed: https:/
Submitter: Jenkins
Branch: master
commit 48681af86a1dfd5 0a8e90a9d7cd906 8417cc52a9
Author: Tang Chen <email address hidden>
Date: Fri Feb 19 13:44:54 2016 +0800
Don't use Mock.called_ once_with that does not exist
Class mock.Mock does not exist method "called_ once_with( )", it just called_ once_with( )". "called_ once_with( )" does
exists method "assert_
nothing because it's a mock object.
In OSC, only one place is still using "called_ once_with( )". Fix it.
Change-Id: Ib890e95d775c3f c43df80fa05c82d 726e78cdac8
Partial Bug: 1544522