def __init__(self): """ Constructs a Client instance Keyword arguments: self Client -- Self instance """ self.auth = OAuth2Handler(self) self.user = UserHandler(self) self.projects = ProjectsHandler(self) self.bugs = BugsHandler(self) self.attachments = AttachmentsHandler(self) self.platform = PlatformHandler(self)
def testOAuth2HandlerExchangeNonStrRedirectURI(self): client = Client() client.debugReturn = '{}' h = OAuth2Handler(client) self.assertRaises(SDKInvalidArgException, h.exchangeAuthCode, '', '', '', '', 1)
def testOAuth2HandlerGenerateNonStrState(self): h = OAuth2Handler(Client()) self.assertRaises(SDKInvalidArgException, h.generateAuthLink, '', '', '', 1)