<s> import io <EOL> import json <EOL> from tests . testing import resource_filename <EOL> from yelp . obj . deal import Deal <EOL> def test_init_deal ( ) : <EOL> with io . open ( resource_filename ( '<STR_LIT>' ) ) as biz : <EOL> response = json . load ( biz ) [ '<STR_LIT>' ] [ <NUM_LIT:0> ] <EOL> deal = Deal ( response ) <EOL> assert deal . url == response [ '<STR_LIT:url>' ] </s>
