Skip to content

Commit

Permalink
Add test for endpoints config default for TwitterTransport
Browse files Browse the repository at this point in the history
  • Loading branch information
justinvdm committed Mar 18, 2014
1 parent 37f6cbe commit f32f43b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions vumi/transports/twitter/tests/test_twitter.py
Expand Up @@ -54,6 +54,12 @@ def setUp(self):

self.transport = yield self.tx_helper.get_transport(self.config)

def test_config_endpoints_default(self):
del self.config['endpoints']
self.config['transport_name'] = 'twitter'
config = TwitterTransport.CONFIG_CLASS(self.config)
self.assertEqual(config.endpoints, {'tweets': 'default'})

@inlineCallbacks
def test_tracking_tweets(self):
someone = self.twitter.new_user('someone', 'someone')
Expand Down

0 comments on commit f32f43b

Please sign in to comment.