6412e40c695c4239c0f77fee45e97434330d9b56,imagekit/tests.py,IKTest,test_save_image,#IKTest#,63
Before Change
self.p.save_image("test2.jpeg", ContentFile(img.read()))
self.failIf(os.path.isfile(path))
path = self.p.image.path
img.seek(0)
self.p.save_image("test.jpeg", ContentFile(img.read()))
self.failIf(os.path.isfile(path))
img.close()
After Change
img.close()
def test_save_image(self):
photo = Photo.objects.get(id=self.photo.id)
self.assertTrue(os.path.isfile(photo.original_image.path))
def test_setup(self):
self.assertEqual(self.photo.original_image.width, 800)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances
Project Name: matthewwithanm/django-imagekit
Commit Name: 6412e40c695c4239c0f77fee45e97434330d9b56
Time: 2011-09-26
Author: Chrismc@hzdg.com
File Name: imagekit/tests.py
Class Name: IKTest
Method Name: test_save_image
Project Name: IDSIA/sacred
Commit Name: ef55182623cf9492d208ad656d84a50c51c862cf
Time: 2017-11-04
Author: qwlouse@gmail.com
File Name: tests/test_stdout_capturing.py
Class Name:
Method Name: test_fd_tee_output
Project Name: IDSIA/sacred
Commit Name: ef55182623cf9492d208ad656d84a50c51c862cf
Time: 2017-11-04
Author: qwlouse@gmail.com
File Name: tests/test_stdout_capturing.py
Class Name:
Method Name: test_python_tee_output