<gh_stars>1-10
from __future__ import unicode_literals

import uuid

import factory
import factory.fuzzy


class FuzzyEmail(factory.fuzzy.FuzzyText):

    def fuzz(self):
        return super(FuzzyEmail, self).fuzz() + "@example.com"


class FuzzyUUID(factory.fuzzy.BaseFuzzyAttribute):

    def fuzz(self):
        return str(uuid.uuid4())


class SmartModelFactory(factory.django.DjangoModelFactory):
    created_by = factory.SubFactory("tracpro.test.factories.User")
    modified_by = factory.SubFactory("tracpro.test.factories.User")

    class Meta:
        abstract = True

from __future__ import unicode_literals

import uuid

import factory
import factory.fuzzy


class FuzzyEmail(factory.fuzzy.FuzzyText):

    def fuzz(self):
        return super(FuzzyEmail, self).fuzz() + "@example.com"


class FuzzyUUID(factory.fuzzy.BaseFuzzyAttribute):

    def fuzz(self):
        return str(uuid.uuid4())


class SmartModelFactory(factory.django.DjangoModelFactory):
    created_by = factory.SubFactory("tracpro.test.factories.User")
    modified_by = factory.SubFactory("tracpro.test.factories.User")

    class Meta:
        abstract = True