<s> import os <EOL> import sys <EOL> import unittest <EOL> sys . path . insert ( <NUM_LIT:0> , os . path . abspath ( '<STR_LIT>' ) ) <EOL> sys . path . insert ( <NUM_LIT:0> , os . path . abspath ( '<STR_LIT>' ) ) <EOL> from situation import settings , tweeter <EOL> from situation . tweepy import TweepError <EOL> from google . appengine . ext import testbed <EOL> from . import skip_auth <EOL> class TestTwitter ( unittest . TestCase ) : <EOL> def setUp ( self ) : <EOL> self . testbed = testbed . Testbed ( ) <EOL> self . testbed . activate ( ) <EOL> self . testbed . init_datastore_v3_stub ( ) <EOL> self . testbed . init_memcache_stub ( ) <EOL> self . testbed . init_logservice_stub ( ) <EOL> def tearDown ( self ) : <EOL> self . testbed . deactivate ( ) <EOL> @ skip_auth ( ) <EOL> def test_get_tweets ( self ) : <EOL> t = tweeter . TwitterStatusProcessor ( ** settings . TWITTER [ '<STR_LIT>' ] ) <EOL> tweets = [ ] <EOL> try : <EOL> tweets = t . _get_tweets ( None ) <EOL> except TweepError : <EOL> pass <EOL> self . assertGreater ( len ( tweets ) , <NUM_LIT:0> , '<STR_LIT>' ) </s>
