<s> from twython import TwythonStreamer , TwythonStreamError <EOL> from . config import ( <EOL> app_key , app_secret , oauth_token , oauth_token_secret , unittest <EOL> ) <EOL> class TwythonStreamTestCase ( unittest . TestCase ) : <EOL> def setUp ( self ) : <EOL> class MyStreamer ( TwythonStreamer ) : <EOL> def on_success ( self , data ) : <EOL> self . disconnect ( ) <EOL> def on_error ( self , status_code , data ) : <EOL> raise TwythonStreamError ( data ) <EOL> self . api = MyStreamer ( app_key , app_secret , <EOL> oauth_token , oauth_token_secret ) <EOL> client_args = { <EOL> '<STR_LIT>' : { <EOL> '<STR_LIT>' : '<STR_LIT>' <EOL> } <EOL> } <EOL> self . api_with_header = MyStreamer ( app_key , app_secret , <EOL> oauth_token , oauth_token_secret , <EOL> client_args = client_args ) <EOL> @ unittest . skip ( '<STR_LIT>' ) <EOL> def test_stream_status_filter ( self ) : <EOL> self . api . statuses . filter ( track = '<STR_LIT>' ) <EOL> @ unittest . skip ( '<STR_LIT>' ) <EOL> def test_stream_status_sample ( self ) : <EOL> self . api . statuses . sample ( ) <EOL> @ unittest . skip ( '<STR_LIT>' ) <EOL> def test_stream_status_firehose ( self ) : <EOL> self . assertRaises ( TwythonStreamError , self . api . statuses . firehose , <EOL> track = '<STR_LIT>' ) <EOL> @ unittest . skip ( '<STR_LIT>' ) <EOL> def test_stream_site ( self ) : <EOL> self . assertRaises ( TwythonStreamError , self . api . site , <EOL> follow = '<STR_LIT>' ) <EOL> @ unittest . skip ( '<STR_LIT>' ) <EOL> def test_stream_user ( self ) : <EOL> self . api . user ( track = '<STR_LIT>' ) </s>
