def create_users(self):
        """Creates a bunch of test users."""
        from solace.models import User
        num = {'small': 15, 'medium': 30, 'large': 50}[self.data_set_size]
        result = []
        used = set()
        for x in xrange(num):
            while 1:
                username = choice(self.USERNAMES)
                if username not in used:
                    used.add(username)
                    break
            result.append(User(username, '%s@example.com' % username,
                               'default'))
        print 'Generated %d users' % num
        return result
dataset/ETHPy150Open mitsuhiko/solace/solace/scripts.py/MakeTestDataCommand.create_users/original