<s> """<STR_LIT>""" <EOL> try : <EOL> import json <EOL> except ImportError : <EOL> import simplejson as json <EOL> from mock import Mock <EOL> from nose . tools import eq_ <EOL> from tests . utils import check_client_method , get_client_and_http , URL_BASE <EOL> def test_find_all ( ) : <EOL> client , check_assertions = check_client_method ( ) <EOL> result = client . Stream . find_all ( ) <EOL> check_assertions ( result , '<STR_LIT:GET>' , '<STR_LIT>' ) <EOL> def test_find_all_by_org_id ( ) : <EOL> org_id = <NUM_LIT> <EOL> client , check_assertions = check_client_method ( ) <EOL> result = client . Stream . find_all_by_org_id ( org_id ) <EOL> check_assertions ( result , '<STR_LIT:GET>' , '<STR_LIT>' % org_id ) <EOL> def test_find_all_personal ( ) : <EOL> client , check_assertions = check_client_method ( ) <EOL> result = client . Stream . find_all_personal ( ) <EOL> check_assertions ( result , '<STR_LIT:GET>' , '<STR_LIT>' ) <EOL> def test_find_all_by_space_id ( ) : <EOL> space_id = <NUM_LIT> <EOL> client , check_assertions = check_client_method ( ) <EOL> result = client . Stream . find_all_by_space_id ( space_id ) <EOL> check_assertions ( result , '<STR_LIT:GET>' , '<STR_LIT>' % space_id ) <EOL> def test_find_by_ref ( ) : <EOL> ref_type = '<STR_LIT>' <EOL> ref_id = <NUM_LIT> <EOL> client , check_assertions = check_client_method ( ) <EOL> result = client . Stream . find_by_ref ( ref_type , ref_id ) <EOL> check_assertions ( result , '<STR_LIT:GET>' , '<STR_LIT>' % ( ref_type , ref_id ) ) <EOL> def test_find_item_by_external_id ( ) : <EOL> app_id = <NUM_LIT> <EOL> external_id = <NUM_LIT> <EOL> client , check_assertions = check_client_method ( ) <EOL> result = client . Item . find_all_by_external_id ( app_id , external_id ) <EOL> check_assertions ( result , <EOL> '<STR_LIT:GET>' , <EOL> '<STR_LIT>' % ( app_id , external_id ) ) <EOL> def test_item_revisions ( ) : <EOL> item_id = <NUM_LIT:255> <EOL> client , check_assertions = check_client_method ( ) <EOL> result = client . Item . revisions ( item_id ) <EOL> check_assertions ( result , <EOL> '<STR_LIT:GET>' , <EOL> '<STR_LIT>' % ( item_id ) ) <EOL> def test_item_revision_difference ( ) : <EOL> item_id = <NUM_LIT:2> <EOL> from_id = <NUM_LIT:4> <EOL> to_id = <NUM_LIT:8> <EOL> client , check_assertions = check_client_method ( ) <EOL> result = client . Item . revision_difference ( item_id , from_id , to_id ) <EOL> check_assertions ( result , <EOL> '<STR_LIT:GET>' , <EOL> '<STR_LIT>' % ( item_id , from_id , to_id ) ) <EOL> def test_item_revision_difference ( ) : <EOL> item_id = <NUM_LIT:2> <EOL> from_id = <NUM_LIT:4> <EOL> to_id = <NUM_LIT:8> <EOL> client , check_assertions = check_client_method ( ) </s>
