diff options
| author | Stephen Finucane <sfinucan@redhat.com> | 2020-12-08 15:37:14 +0000 |
|---|---|---|
| committer | Stephen Finucane <sfinucan@redhat.com> | 2021-01-08 12:14:43 +0000 |
| commit | b34905722015646538c8557f9fa91fc2b5edffdb (patch) | |
| tree | 924211b8dff6412d56565300b38529050c3d2206 /openstackclient/tests | |
| parent | 958344733aa6d8aea6cb8d06cc4d879fe1ee44a6 (diff) | |
| download | python-openstackclient-b34905722015646538c8557f9fa91fc2b5edffdb.tar.gz | |
tests: Remove unused fake method
The FakeServerMigration.get_server_migrations method was added in
change I15b4a5aca8d0dee59dd293e7b1c7272cdfbeea20 but has never been
used. Remove it.
Change-Id: I6089c5200737b9319a8e96f2a2fc18b7cdd6b2c6
Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
Diffstat (limited to 'openstackclient/tests')
| -rw-r--r-- | openstackclient/tests/unit/compute/v2/fakes.py | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/openstackclient/tests/unit/compute/v2/fakes.py b/openstackclient/tests/unit/compute/v2/fakes.py index d3d037a9..b667c691 100644 --- a/openstackclient/tests/unit/compute/v2/fakes.py +++ b/openstackclient/tests/unit/compute/v2/fakes.py @@ -1631,22 +1631,3 @@ class FakeServerMigration(object): attrs, methods)) return migrations - - @staticmethod - def get_server_migrations(migrations=None, count=2): - """Get an iterable MagicMock object with a list of faked migrations. - - If server migrations list is provided, then initialize the Mock object - with the list. Otherwise create one. - - :param List migrations: - A list of FakeResource objects faking server migrations - :param int count: - The number of server migrations to fake - :return: - An iterable Mock object with side_effect set to a list of faked - server migrations - """ - if migrations is None: - migrations = FakeServerMigration.create_server_migrations(count) - return mock.Mock(side_effect=migrations) |
