← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1320774] [NEW] Non-existent assertion methods being called on mocks

 

Public bug reported:

There are various places in the unit tests where non-existent "assert"
methods are called on mock objects.

e.g. assert_called_once(), assert_called_twice(),
assert_called_one_with(), assert_called_twice()


To reproduce, put the mock.py file in the base neutron directory and edit the __getattr__ methods to check if the name begins with 'assert' and raise an exception if true.

** Affects: neutron
     Importance: Undecided
         Status: New

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

Title:
  Non-existent assertion methods being called on mocks

Status in OpenStack Neutron (virtual network service):
  New

Bug description:
  There are various places in the unit tests where non-existent "assert"
  methods are called on mock objects.

  e.g. assert_called_once(), assert_called_twice(),
  assert_called_one_with(), assert_called_twice()

  
  To reproduce, put the mock.py file in the base neutron directory and edit the __getattr__ methods to check if the name begins with 'assert' and raise an exception if true.

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


Follow ups

References