vmware-nsx/neutron/hacking
Jacek Swiderski 5f53212853 mock.assert_called_once() is not a valid method
mock.assert_called_once() is a no-op that tests nothing. Instead
mock.assert_called_once_with() should be used (or use
assertEqual(1, mock_obj.call_count) if you don't want to check
parameters).

Borrowed HACKING rule from Davanum Srinivas's nova patch to
prevent it from appearing again.

Change-Id: Idac1d3c89c07e13c9a209663f4e557fcb7547821
Closes-Bug: #1365751
Closes-Bug: #1300265
2014-10-13 12:36:49 +02:00
..
__init__.py Add missing translation support 2014-05-19 12:16:56 +02:00
checks.py mock.assert_called_once() is not a valid method 2014-10-13 12:36:49 +02:00