<s> import json <EOL> import os <EOL> TEST_DIR = os . path . dirname ( os . path . realpath ( __file__ ) ) <EOL> FIXTURE_DIR = os . path . join ( TEST_DIR , '<STR_LIT>' ) <EOL> def read_fixture ( name ) : <EOL> with open ( os . path . join ( FIXTURE_DIR , name ) , '<STR_LIT:r>' ) as src : <EOL> return src . read ( ) <EOL> def clone ( j ) : <EOL> return json . loads ( json . dumps ( j ) ) </s>
