def test_convert_https_to_http(self):
    config = {'name': 'guestbook_api',
              'version': 'X',
              'adapter': {'bns': 'https://tictactoe.appspot.com/_ah/spi',
                          'type': 'lily'},
              'root': 'https://tictactoe.appspot.com/_ah/api',
              'methods': {}}
    self.config_manager._convert_https_to_http(config)

    self.assertEqual('http://tictactoe.appspot.com/_ah/spi',
                     config['adapter']['bns'])
    self.assertEqual('http://tictactoe.appspot.com/_ah/api', config['root'])
Test that the _convert_https_to_http function works.
dataset/ETHPy150Open AppScale/appscale/AppServer/google/appengine/tools/devappserver2/endpoints/api_config_manager_test.py/ApiConfigManagerTest.test_convert_https_to_http