nova/nova
Balazs Gibizer e0d22ba4de Reject non existent mock assert calls
assert_called and assert_not_called are not asserting the state
of the mock object but considered as mocked calls so mock
will never raise exception but always executed successfully

This change patches the Mock class during unit test
to raise an exception if a function called on a mock object
that's name starts with 'assert' and does not one
of the supported Mock assert calls.

This change also fix the unit test to call only the supported
assert function on mock object.

This change also removes hacking rule N327 as the mock change
renders this hacking rule obsolete.

Change-Id: Id75def84bd4bdc1c1fb06221b4223322a99251eb
2014-12-16 11:40:36 +01:00
..
CA
api Merge "Parse "networks" attribute if loading os-networks" 2014-12-11 12:46:41 +00:00
cells Merge "Make scheduler filters/weighers only load once" 2014-12-11 17:02:49 +00:00
cert Remove havana compat from nova.cert.rpcapi 2014-11-22 01:10:05 +00:00
cloudpipe Fixes potential reliablity issue with missing CONF import 2014-09-26 13:48:25 +09:30
cmd Merge "move eventlet GREENDNS override to top level" 2014-12-10 09:46:47 +00:00
compute Merge "Add support for clean_shutdown to rescue in compute api layer" 2014-12-11 14:08:38 +00:00
conductor Merge "Set vm state error when raising unexpected exception in live migrate" 2014-12-10 14:46:39 +00:00
console rename oslo.concurrency to oslo_concurrency 2014-12-06 23:30:05 +08:00
consoleauth Replacement `_` on `_LW` in all LOG.warning part 1 2014-11-20 11:19:16 +02:00
db Merge "Don't modify columns_to_join formal parameter in _manual_join_columns" 2014-12-10 20:29:55 +00:00
hacking Reject non existent mock assert calls 2014-12-16 11:40:36 +01:00
image rename oslo.concurrency to oslo_concurrency 2014-12-06 23:30:05 +08:00
ipv6
keymgr Replacement `_` on `_LW` in all LOG.warning part 1 2014-11-20 11:19:16 +02:00
locale Imported Translations from Transifex 2014-12-04 06:16:12 +00:00
network Merge "downgrade 'No network configured!' to debug log level" 2014-12-12 02:33:38 +00:00
objects Make objects use the generalized backport scheme 2014-12-11 09:11:46 -08:00
objectstore
openstack Sync latest from oslo-incubator 2014-11-26 12:53:20 -05:00
pci Support macvtap for vif_type being hw_veb 2014-12-05 21:55:31 -05:00
rdp
scheduler Make scheduler filters/weighers only load once 2014-12-09 18:58:49 +01:00
servicegroup Merge "Indicate whether service is down for mc driver" 2014-12-05 16:05:45 +00:00
spice
storage rename oslo.concurrency to oslo_concurrency 2014-12-06 23:30:05 +08:00
tests Reject non existent mock assert calls 2014-12-16 11:40:36 +01:00
virt Merge "fix import of oslo.concurrency" 2014-12-12 01:07:33 +00:00
vnc Deduplicate some INFO and AUDIT level messages 2014-11-13 15:25:40 +11:00
volume Merge "rename oslo.concurrency to oslo_concurrency" 2014-12-08 22:40:45 +00:00
__init__.py move eventlet GREENDNS override to top level 2014-12-08 17:41:03 -05:00
availability_zones.py
baserpc.py Switch to nova's jsonutils in oslo.serialization 2014-10-14 11:35:05 +00:00
block_device.py Use oslo.utils 2014-10-06 21:41:17 -04:00
config.py Set logging level for glanceclient to WARN 2014-10-21 10:59:43 -04:00
context.py Prevent admin role leak in context.elevated 2014-11-24 22:58:05 +00:00
crypto.py rename oslo.concurrency to oslo_concurrency 2014-12-06 23:30:05 +08:00
debugger.py Replacement `_` on `_LW` in all LOG.warning part 1 2014-11-20 11:19:16 +02:00
exception.py Merge "Compute: Catch binding failed exception while init host" 2014-12-10 20:30:24 +00:00
filters.py Make scheduler filters/weighers only load once 2014-12-09 18:58:49 +01:00
hooks.py Update hooks from oslo-incubator copy 2014-10-28 01:24:31 +00:00
i18n.py Remove unused modules copied from oslo-incubator 2014-10-15 01:28:42 +00:00
loadables.py Use oslo.utils 2014-10-06 21:41:17 -04:00
manager.py
netconf.py Specify storage IP for iscsi connector 2014-11-13 11:06:11 -06:00
notifications.py Merge "Make notifications use Instance.get_flavor()" 2014-11-24 06:43:30 +00:00
paths.py
policy.py
quota.py Replacement `_` on `_LE` in all LOG.exception 2014-11-20 11:19:09 +02:00
rpc.py Switch to nova's jsonutils in oslo.serialization 2014-10-14 11:35:05 +00:00
safe_utils.py
service.py rename oslo.concurrency to oslo_concurrency 2014-12-06 23:30:05 +08:00
test.py Reject non existent mock assert calls 2014-12-16 11:40:36 +01:00
utils.py Merge "rename oslo.concurrency to oslo_concurrency" 2014-12-08 22:40:45 +00:00
version.py Replacement `_` on `_LE` in all LOG.error 2014-10-21 06:40:05 +00:00
weights.py Make scheduler filters/weighers only load once 2014-12-09 18:58:49 +01:00
wsgi.py Merge "Eventlet green threads not released back to pool" 2014-12-02 13:04:26 +00:00