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')
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)
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)