def load_fixture(relpath):
 abspath = os.path.join(os.path.dirname(__file__), 'test_files', relpath)
 with open(abspath) as fixture_file:
  contents = fixture_file.read()
 return contents.decode('utf8')

def load_fixture ( relpath ) : abspath = os . path . join ( os . path . dirname ( __file__ ) , 'test_files' , relpath ) with open ( abspath ) as fixture_file : contents = fixture_file . read ( ) return contents . decode ( 'utf8' )
return a unicode object representing the contents of the fixture file at the given path within a test_files directory in the same directory as the test file .