Exemplo n.º 1
0
 def test_uses_configured_settings(self):
     auth = TwitterBackend()
     consumer = auth._get_twitter()._Consumer
     self.assertEquals(settings.D51_DJANGO_AUTH['TWITTER']['CONSUMER_KEY'], consumer.key)
     self.assertEquals(settings.D51_DJANGO_AUTH['TWITTER']['CONSUMER_SECRET'], consumer.secret)
Exemplo n.º 2
0
 def test_returns_oauthapi(self):
     auth = TwitterBackend()
     self.assertTrue(isinstance(auth._get_twitter(), OAuthApi))