import factory


class UserFactory(factory.django.DjangoModelFactory):
    class Meta:
        model = "auth.User"

    username = factory.Sequence(lambda n: "Agent {0}".format(str(n)))
    email = factory.Sequence(lambda n: <EMAIL>".<EMAIL>(str(n)))
    password = '<PASSWORD>'
    is_active = True

import factory


class UserFactory(factory.django.DjangoModelFactory):
    class Meta:
        model = "auth.User"

    username = factory.Sequence(lambda n: "Agent {0}".format(str(n)))
    email = factory.Sequence(lambda n: <EMAIL>".<EMAIL>(str(n)))
    password = '<PASSWORD>'
    is_active = True
