def snippet_seq(name, offset=0, count=1024):
 path = os.path.join(test_file_dir, 'snippets', ('%s.txt' % name))
 with open(path, 'rb') as f:
  text = f.read().decode('utf-8')
 snippets = text.split('\n\n')
 (start, end) = (offset, (offset + count))
 return tuple(snippets[start:end])

def snippet_seq ( name , offset = 0 , count = 1024 ) : path = os . path . join ( test_file_dir , 'snippets' , ( '%s.txt' % name ) ) with open ( path , 'rb' ) as f : text = f . read ( ) . decode ( 'utf-8' ) snippets = text . split ( '\n\n' ) ( start , end ) = ( offset , ( offset + count ) ) return tuple ( snippets [ start : end ] )
return a tuple containing the unicode text snippets read from the snippet file having *name* .