<s> import unittest <EOL> class ImageTestCase ( unittest . TestCase ) : <EOL> def setUp ( self ) : <EOL> from kivy . core . image import Image <EOL> import os <EOL> self . cls = Image <EOL> self . image = os . path . join ( os . path . dirname ( __file__ ) , '<STR_LIT>' ) <EOL> print ( self . image ) <EOL> self . root = Image ( self . image ) <EOL> def test_keep_data ( self ) : <EOL> root = self . root <EOL> texture = root . texture <EOL> self . assertEqual ( root . _image . _data [ <NUM_LIT:0> ] . data , None ) <EOL> i1 = self . cls ( self . image , keep_data = True ) <EOL> if not i1 . _image . _data [ <NUM_LIT:0> ] . data : <EOL> self . fail ( '<STR_LIT>' ) </s>
