Exemple #1
0
    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)
Exemple #2
0
	def testOAuth2HandlerExchangeNonStrRedirectURI(self):
		client = Client()
		client.debugReturn = '{}'
		h = OAuth2Handler(client)
		self.assertRaises(SDKInvalidArgException, h.exchangeAuthCode, '', '', '', '', 1)
Exemple #3
0
	def testOAuth2HandlerGenerateNonStrState(self):
		h = OAuth2Handler(Client())
		self.assertRaises(SDKInvalidArgException, h.generateAuthLink, '', '', '', 1)