

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

dataset/ETHPy150Open dtroyer/python-openstackclient/openstackclient/tests/compute/v2/fakes.py FakeFlavor.get_flavors/VarMisuse@47/211 `flavors`->`count`