from django.core.files.uploadedfile import SimpleUploadedFile
newPhoto.image = SimpleUploadedFile(name='test_image.jpg', content=open(
    image_path, 'rb').read(), content_type='image/jpeg')
Модель тестирования Django с ImageField