def test_create_product(self): OrderFactory.create_batch(3) self.assertEqual(Order.objects.count(), 3)