@staticmethod
    def get_floating_ips(floating_ips=None, count=2):
        if floating_ips is None:
            floating_ips = FakeFloatingIP.create_floating_ips(count)
        return mock.MagicMock(side_effect=floating_ips)
Get an iterable MagicMock object with a list of faked floating ips.
dataset/ETHPy150Open dtroyer/python-openstackclient/openstackclient/tests/compute/v2/fakes.py/FakeFloatingIP.get_floating_ips