def create_size(self, **kwargs):
        defaults = {
            'name': self.get_random_string(),
            'width': random.randint(50, 100),
            'height': random.randint(50, 100),
        }
        defaults.update(kwargs)
        return Size.objects.create(**defaults)
Factory method for creating Sizes.
dataset/ETHPy150Open mlavin/django-ad-code/adcode/tests/base.py/AdCodeDataTestCase.create_size