def setUp(self): super(ApproximateCountTests, self).setUp() Author.objects.bulk_create([Author() for i in range(10)])
def setUp(self): super(FoundRowsTests, self).setUp() Author.objects.bulk_create([Author() for i in range(10)])
def setUp(self): super(SmartIteratorTests, self).setUp() Author.objects.bulk_create([Author(id=i + 1) for i in range(10)])