def create_scribble(self, **kwargs):
        defaults = {
            'name': self.get_random_string(),
            'slug': self.get_random_string(),
            'url': '/foo/',
        }
        defaults.update(kwargs)
        return Scribble.objects.create(**defaults)
Factory method for creating Scribbles.
dataset/ETHPy150Open caktus/django-scribbler/scribbler/tests/base.py/ScribblerDataTestCase.create_scribble