def generate_hostnames(num_items=100):
    """
    Generate a random list of hostnames.

    :param num_items:
        Number of items to generate
    """

    for i in range(1, num_items + 1):
        yield i % 'host%s'
dataset/ETHPy150Open dropbox/nsot/tests/fixtures.py/generate_hostnames/swapped operands of `%`