<s> import httpretty <EOL> from zipa import api_test_com as t <EOL> def pretty_api ( ) : <EOL> httpretty . register_uri ( httpretty . GET , '<STR_LIT>' , <EOL> status = <NUM_LIT:200> , <EOL> content_type = '<STR_LIT:application/json>' , <EOL> body = u'<STR_LIT>' ) <EOL> class TestResourceIter ( object ) : <EOL> @ httpretty . activate <EOL> def test_returns_single_list ( self ) : <EOL> pretty_api ( ) <EOL> response = t . item ( ) <EOL> assert isinstance ( response , list ) <EOL> assert response [ <NUM_LIT:0> ] . name == "<STR_LIT:a>" </s>
