#NEWLINE# def test_dont_access_source( ) : #NEWLINE# #INDENT# '\n    Touching the source may trigger an unneeded query.\n    See <https://github.com/matthewwithanm/django-imagekit/issues/295>\n\n    ' #NEWLINE# pmock = PropertyMock ( ) #NEWLINE# pmock . __get__ = Mock ( ) #NEWLINE# with patch . object ( Photo , 'original_image' , pmock ) : #NEWLINE# #INDENT# photo = Photo ( ) #NEWLINE# assert_false ( pmock . __get__ . called )