<s> from badger . models import Award , Badge <EOL> import factory <EOL> from kitsune . sumo . tests import FuzzyUnicode <EOL> from kitsune . users . tests import UserFactory <EOL> class BadgeFactory ( factory . DjangoModelFactory ) : <EOL> class Meta : <EOL> model = Badge <EOL> description = FuzzyUnicode ( ) <EOL> title = FuzzyUnicode ( ) <EOL> class AwardFactory ( factory . DjangoModelFactory ) : <EOL> class Meta : <EOL> model = Award <EOL> badge = factory . SubFactory ( BadgeFactory ) <EOL> description = FuzzyUnicode ( ) <EOL> user = factory . SubFactory ( UserFactory ) </s>
