Exemplo n.º 1
0
 def testMultipassToken(self):
     tclient = tender_api()
     
     multipass(expires=None, username=None, email=None, unique_id=None, trusted=True, avatar_url=None, extras=None):
     
     self.assertEquals(tclient.multipass(username='******', email='*****@*****.**', expires='2010-01-16T13:19'), \
         'mi2sYmBjQXdOt3k7pIS3wWZYTIPnOpLUHwHBHU0eKzsp908zyZ54g3WPOmreGkMddXePgVKncnW5%0A%2B8Cnfbo1gmk%2BTOGCgBkujledRviYwRXK1DppVNwPAGupQLs%2BKYjq%0A')
Exemplo n.º 2
0
 def testTenderAPI(self):
     # this is to test if the API is working given the variables you have in settings
     tclient = tender_api()
     self.assertEquals(tclient.raw_data.permalink, settings.TENDER_APP_NAME)
Exemplo n.º 3
0
 def create_discussion(self, title, body, user, public=True):
     from tenderize.helpers import tender_api
     return tender_api().create_discussion(title, body, self.id, user.email, public)