def METHOD_NAME(self):
    from pyramid.paster import get_app, get_appsettings
    os.environ['TEST_APP'] = '1'
    dir_path = os.path.dirname(os.path.realpath(__file__))
    inifile = os.path.realpath(os.path.join(dir_path, '../..', 'development.ini'))
    app = get_app(inifile)
    self.app_settings = get_appsettings(inifile)
    self.testapp = TestApp(app)
    self.grids = {
        '21781': getTileGrid(21781),
        '2056': getTileGrid(2056),
        '3857': getTileGrid(3857),
        '4326': getTileGrid(4326)
    }