<s> from decimal import Decimal <EOL> from model_mommy . recipe import Recipe , foreign_key , seq <EOL> from model_mommy . recipe import related <EOL> from model_mommy . timezone import now <EOL> from test . generic . models import TEST_TIME , Person , Dog , DummyDefaultFieldsModel , DummyUniqueIntegerFieldModel <EOL> from six import u <EOL> from datetime import timedelta <EOL> person = Recipe ( Person , <EOL> name = '<STR_LIT>' , <EOL> nickname = '<STR_LIT>' , <EOL> age = <NUM_LIT> , <EOL> bio = '<STR_LIT>' , <EOL> blog = '<STR_LIT>' , <EOL> wanted_games_qtd = <NUM_LIT:4> , <EOL> birthday = now ( ) . date ( ) , <EOL> appointment = now ( ) , <EOL> birth_time = now ( ) <EOL> ) <EOL> serial_person = Recipe ( Person , <EOL> name = seq ( '<STR_LIT>' ) , <EOL> ) <EOL> serial_numbers = Recipe ( DummyDefaultFieldsModel , <EOL> default_decimal_field = seq ( Decimal ( '<STR_LIT>' ) ) , <EOL> default_int_field = seq ( <NUM_LIT:10> ) , <EOL> default_float_field = seq ( <NUM_LIT> ) <EOL> ) <EOL> serial_numbers_by = Recipe ( DummyDefaultFieldsModel , <EOL> default_decimal_field = seq ( Decimal ( '<STR_LIT>' ) , increment_by = Decimal ( '<STR_LIT>' ) ) , <EOL> default_int_field = seq ( <NUM_LIT:10> , increment_by = <NUM_LIT:3> ) , <EOL> default_float_field = seq ( <NUM_LIT> , increment_by = <NUM_LIT> ) <EOL> ) <EOL> serial_datetime = Recipe ( DummyDefaultFieldsModel , <EOL> default_date_field = seq ( TEST_TIME . date ( ) , timedelta ( days = <NUM_LIT:1> ) ) , <EOL> default_date_time_field = seq ( TEST_TIME , timedelta ( hours = <NUM_LIT:3> ) ) , <EOL> default_time_field = seq ( TEST_TIME . time ( ) , timedelta ( seconds = <NUM_LIT:15> ) ) <EOL> ) <EOL> dog = Recipe ( Dog , <EOL> breed = '<STR_LIT>' , <EOL> owner = foreign_key ( person ) <EOL> ) <EOL> other_dog = Recipe ( Dog , <EOL> breed = '<STR_LIT>' , <EOL> owner = foreign_key ( '<STR_LIT>' ) <EOL> ) <EOL> dog_with_friends = dog . extend ( <EOL> friends_with = related ( dog , dog ) , <EOL> ) <EOL> extended_dog = dog . extend ( <EOL> breed = '<STR_LIT>' , <EOL> ) <EOL> other_dog_unicode = Recipe ( Dog , <EOL> breed = '<STR_LIT>' , <EOL> owner = foreign_key ( u ( '<STR_LIT>' ) ) <EOL> ) <EOL> dummy_unique_field = Recipe ( DummyUniqueIntegerFieldModel , <EOL> value = seq ( <NUM_LIT:10> ) , <EOL> ) <EOL> dog_lady = Recipe ( Person , <EOL> dog_set = related ( '<STR_LIT>' , other_dog ) <EOL> ) <EOL> nullable_related = Recipe ( '<STR_LIT>' , <EOL> dummynullfieldsmodel_set = related ( Recipe ( '<STR_LIT>' ) ) <EOL> ) <EOL> cast_member = Recipe ( '<STR_LIT>' , person = foreign_key ( person ) ) <EOL> movie_with_cast = Recipe ( '<STR_LIT>' , <EOL> cast_members = related ( cast_member , cast_member ) <EOL> ) </s>
