def sample_content(name):
 with open(('tests/components/media_player/yamaha_samples/%s' % name), encoding='utf-8') as content:
  return content.read()

def sample_content ( name ) : with open ( ( 'tests/components/media_player/yamaha_samples/%s' % name ) , encoding = 'utf-8' ) as content : return content . read ( )
read content into a string from a file .