

@staticmethod
def get_floating_ips(floating_ips=None, count=2):
    'Get an iterable MagicMock object with a list of faked floating ips.\n\n        If floating_ips list is provided, then initialize the Mock object\n        with the list. Otherwise create one.\n\n        :param List floating ips:\n            A list of FakeResource objects faking floating ips\n        :param int count:\n            The number of floating ips to fake\n        :return:\n            An iterable Mock object with side_effect set to a list of faked\n            floating ips\n        '
    if (floating_ips is None):
        floating_ips = FakeFloatingIP.create_floating_ips(count)
    return mock.MagicMock(side_effect=floating_ips)

dataset/ETHPy150Open dtroyer/python-openstackclient/openstackclient/tests/compute/v2/fakes.py FakeFloatingIP.get_floating_ips/original