Example #1
0
 def setUp(self):
     self.api_token = "token"
     self.api_secret = "smokin"
     self.consumer_token = "ticket"
     self.consumer_secret = "golden"
     self.message = "Corgis are the new cats. Learn to love it."
     self.excerpt = "Corgis have displaced cats on the internet."
     self.title = "Corgis are the new cats."
     self.headline = "Corgis are the new cats. Deal with it."
     self.tweet = 'Corgis = cats. Get over it.'
     self.url = "http://bit.ly/x0c2e8"  # lgt corgis are the new cats
     self.url_title = "Corgis are the New Cats of Internet Culture"
     self.url_description = "According to GeekOut, corgis are the new cats."
     self.image_url = "http://mrg.bz/oDTL0z"
     self.image_url_title = "Laughing Corgi is Laughing"
     self.image_url_description = "lolcorgis > lolcats"
     self.to = ['1','2','3']
     register_share_backend('debug','DebugBackend')
Example #2
0
 def test_register_share_backend(self):
     """Register backend can register a backend"""
     register_share_backend('test','TestBackend')
     self.assertEqual(available_backends['test'], 'TestBackend')