

def create_user(self, **kwargs):
    'Factory method for creating Users.'
    defaults = {
        'username': self.get_random_string(),
        'email': '',
        'password': self.get_random_string(),
    }
    defaults.update(kwargs)
    return User.objects.create_user(**defaults)

dataset/ETHPy150Open caktus/django-scribbler/scribbler/tests/base.py ScribblerDataTestCase.create_user/original