nova/nova/tests
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
..
functional Merge "Modify v21 alias name for compatible with v2" 2014-12-10 20:28:48 +00:00
unit Reject non existent mock assert calls 2014-12-16 11:40:36 +01:00
__init__.py move all tests to nova/tests/unit 2014-11-12 15:31:08 -05:00
fixtures.py simplify database fixture to the features we use 2014-12-10 08:51:30 -05:00