← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1544522] Re: Don't use Mock.called_once_with that does not exist

 

Reviewed:  https://review.openstack.org/279126
Committed: https://git.openstack.org/cgit/openstack/sahara/commit/?id=7d01fabc5e16de0363afeb55c07fde889eb38a32
Submitter: Jenkins
Branch:    master

commit 7d01fabc5e16de0363afeb55c07fde889eb38a32
Author: Javeme <zhangmei.li@xxxxxxxxxxxx>
Date:   Thu Feb 11 19:19:12 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 exists
    method assert_called_once_with. Currently there are still ome places
    where we use called_once_with method, this patch let's correct it.
    
    NOTE: called_once_with() does nothing because it's a mock object.
    
    Closes-Bug: #1544522
    Change-Id: I5698a724bc030b838faa06330a0d3dc77cc0d07a


** Changed in: sahara
       Status: In Progress => Fix Released

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/1544522

Title:
  Don't use Mock.called_once_with that does not exist

Status in Cinder:
  In Progress
Status in neutron:
  Confirmed
Status in Sahara:
  Fix Released

Bug description:
  class mock.Mock does not exist method "called_once_with", it just
  exists method "assert_called_once_with". Currently there are still
  some places where we use called_once_with method, we should correct
  it.

  NOTE: called_once_with() does nothing because it's a mock object.

To manage notifications about this bug go to:
https://bugs.launchpad.net/cinder/+bug/1544522/+subscriptions