def testHandlersAllSupportedFilters(self): client = PyClient() client.debugReturn = { 'data': '{"x": [], "meta": {"pagination": {}}}', 'status': 200 } for e in self._handlerCollection: if 0 <= 1 < len(e) and e[1] == 'requiresIDInConstructor': inst = e[0](client, 999) else: inst = e[0](client) inst.all({'include': ''}) inst.all({'limit': 10}) inst.all({'page': 2})
def testOAuth2HandlerExchangeNonStrRedirectURI(self): client = PyClient() client.debugReturn = '{}' h = OAuth2Handler(client) self.assertRaises(SDKInvalidArgException, h.exchangeAuthCode, '', '', '', '', 1)