def RequireTestImage(f):
 @functools.wraps(f)
 def Decorator(testinstance):
  image_path = os.path.join(testinstance.base_path, 'win7_trial_64bit.raw')
  if os.access(image_path, os.R_OK):
   return f(testinstance)
  else:
   return testinstance.skipTest('No win7_trial_64bit.raw memory image,skipping test. Download it here: goo.gl/19AJGl and put it in test_data.')
 return Decorator

def RequireTestImage ( f ) : @ functools . wraps ( f ) def Decorator ( testinstance ) : image_path = os . path . join ( testinstance . base_path , 'win7_trial_64bit.raw' ) if os . access ( image_path , os . R_OK ) : return f ( testinstance ) else : return testinstance . skipTest ( 'No win7_trial_64bit.raw memory image,skipping test. Download it here: goo.gl/19AJGl and put it in test_data.' ) return Decorator
decorator that skips tests if we dont have the memory image .