# # coding: utf-8 # from __future__ import absolute_import # import logging # import connexion # from cic_eth.server.encoder import JSONEncoder # from cic_eth.server.models.token import Token # from flask import json # from flask_testing import TestCase # from six import BytesIO # class BaseTestCase(TestCase): # def create_app(self): # logging.getLogger('connexion.operation').setLevel('ERROR') # app = connexion.App( # __name__, specification_dir='../../cic_eth/server/openapi') # app.app.json_encoder = JSONEncoder # app.add_api('server.yaml') # return app.app # class TestTokenController(BaseTestCase): # """TokenController integration test stubs""" # def test_get_default_token(self): # """Test case for get_default_token # """ # response = self.client.open( # '/token', # method='GET') # self.assert200(response, # 'Response body is : ' + response.data.decode('utf-8')) # if __name__ == '__main__': # import unittest # unittest.main()