def test_request_with_timeout(self): api = API(TestSession()) first = yield from api.test(timeout=1) second = {'params': {}, 'timeout': 1, 'method_name': 'test' } self.assertDictEqual(first, second)
def test_request_with_args(self): api = API(TestSession()) first = yield from api.test(arg=1) second = {'params': {'arg': 1}, 'timeout': None, 'method_name': 'test' } self.assertDictEqual(first, second)