def test_resize_photo_poorly():
 somepic = get_image_path('mozilla.png')
 src = tempfile.NamedTemporaryFile(mode='r+w+b', suffix='.png', delete=False, dir=settings.TMP_PATH)
 shutil.copyfile(somepic, src.name)
 src_image = Image.open(src.name)
 assert (src_image.size == (339, 128))
 resize_photo(src.name, src.name)
 src_image = Image.open(src.name)
 assert (src_image.size == (339, 128))

def test_resize_photo_poorly ( ) : somepic = get_image_path ( 'mozilla.png' ) src = tempfile . NamedTemporaryFile ( mode = 'r+w+b' , suffix = '.png' , delete = False , dir = settings . TMP_PATH ) shutil . copyfile ( somepic , src . name ) src_image = Image . open ( src . name ) assert ( src_image . size == ( 339 , 128 ) ) resize_photo ( src . name , src . name ) src_image = Image . open ( src . name ) assert ( src_image . size == ( 339 , 128 ) )
if we attempt to set the src/dst .