<s> """<STR_LIT>""" <EOL> import datetime <EOL> import factory <EOL> from geokey . users . tests . model_factories import UserFactory <EOL> from geokey . projects . tests . model_factories import ProjectFactory <EOL> from geokey . categories . tests . model_factories import CategoryFactory <EOL> from . . models import Location , Observation , Comment <EOL> class LocationFactory ( factory . django . DjangoModelFactory ) : <EOL> class Meta : <EOL> model = Location <EOL> name = factory . Sequence ( lambda n : '<STR_LIT>' % n ) <EOL> description = factory . LazyAttribute ( lambda o : '<STR_LIT>' % o . name ) <EOL> geometry = '<STR_LIT>' <EOL> created_at = datetime . date ( <NUM_LIT> , <NUM_LIT:11> , <NUM_LIT:11> ) <EOL> creator = factory . SubFactory ( UserFactory ) <EOL> status = '<STR_LIT>' <EOL> version = <NUM_LIT:1> <EOL> private = False <EOL> private_for_project = None <EOL> class ObservationFactory ( factory . django . DjangoModelFactory ) : <EOL> class Meta : <EOL> model = Observation <EOL> location = factory . SubFactory ( LocationFactory ) <EOL> project = factory . SubFactory ( ProjectFactory ) <EOL> status = '<STR_LIT>' <EOL> category = factory . SubFactory ( CategoryFactory ) <EOL> created_at = datetime . date ( <NUM_LIT> , <NUM_LIT:11> , <NUM_LIT:11> ) <EOL> creator = factory . SubFactory ( UserFactory ) <EOL> version = <NUM_LIT:1> <EOL> class CommentFactory ( factory . django . DjangoModelFactory ) : <EOL> class Meta : <EOL> model = Comment <EOL> text = factory . Sequence ( lambda n : '<STR_LIT>' % n ) <EOL> created_at = datetime . date ( <NUM_LIT> , <NUM_LIT:11> , <NUM_LIT:11> ) <EOL> creator = factory . SubFactory ( UserFactory ) <EOL> commentto = factory . SubFactory ( ObservationFactory ) <EOL> respondsto = None <EOL> status = '<STR_LIT>' </s>
