def populate_models(self):
fake = Faker()<EOL>fake.seed(<NUM_LIT:0>)<EOL>cities = ['<STR_LIT>', '<STR_LIT>', '<STR_LIT>', '<STR_LIT>']<EOL>items = []<EOL>for x in range(<NUM_LIT:100>):<EOL><INDENT>city = cities[x % len(cities)]<EOL>items += [dict(name=fake.name(), city=city)]<EOL><DEDENT>Person.insert_many(items).execute()<EOL>assert Person.select().count() == <NUM_LIT:100><EOL>
Populate test models with (predictable) fake data