nova/nova/tests/unit/virt/hyperv
Takashi NATSUME eca5608fe3 Fix 'has_calls' method calls in unit tests
The 'has_calls' method does not exist in assertion methods of mock.
Replace the 'has_calls' method with an 'assert_has_calls' method or
an 'assert_called_once_with' method.
Add an 'assertEqual' check before an 'assert_has_calls' method.

Conflicts:
    nova/tests/unit/virt/ironic/test_driver.py

NOTE(takashin): The conflict is due to not having the following change
in stable/queens.

    I87f085589bb663c519650f307f25d087c88bbdb1

Change-Id: I4b606fce473d064b9bb00213696c075cea020aaf
Closes-Bug: #1840200
(cherry picked from commit ad482e53fb)
(cherry picked from commit fa59033c40)
(cherry picked from commit 8e7e54f60b)
2019-08-20 12:38:25 +09:00
..
__init__.py
test_base.py Converting nova.virt.hyperv to py3 2015-12-03 08:45:48 +00:00
test_block_device_manager.py Merge "hyperv: Fixes Generation 2 VMs volume boot order" 2017-07-01 14:00:42 +00:00
test_driver.py Pass user context to virt driver when detaching volume 2018-03-06 14:23:54 -05:00
test_eventhandler.py HyperV: Nova serial console access support 2016-05-20 18:59:23 +03:00
test_hostops.py Fix 'has_calls' method calls in unit tests 2019-08-20 12:38:25 +09:00
test_imagecache.py Create hyperv fake images under proper directory 2016-12-02 11:08:46 -05:00
test_livemigrationops.py Merge "Hyper-V: fix live migration with CSVs" 2017-12-01 01:38:59 +00:00
test_migrationops.py Hyper-V: Perform proper cleanup after cold migration 2017-08-30 17:50:11 +00:00
test_pathutils.py propagate OSError to MigrationPreCheckError 2017-10-20 16:46:15 -04:00
test_rdpconsoleops.py Hyper-V: Adds RDPConsoleOps unit tests 2015-09-07 12:47:31 +03:00
test_serialconsolehandler.py Fix wrong override value of config option proxyclient_address 2016-07-27 17:20:35 +08:00
test_serialconsoleops.py Trivial: Fixes serial console minor nits 2016-05-24 10:45:02 -07:00
test_serialproxy.py HyperV: Add serial console proxy 2016-04-18 20:32:13 +03:00
test_snapshotops.py Fix 'has_calls' method calls in unit tests 2019-08-20 12:38:25 +09:00
test_vif.py Adds Hyper-V OVS ViF driver 2017-01-11 22:22:13 +00:00
test_vmops.py Fix 'has_calls' method calls in unit tests 2019-08-20 12:38:25 +09:00
test_volumeops.py HyperV: use os-brick for volume related operations 2016-11-17 18:36:05 +02:00