def METHOD_NAME(self):
    test_config = {
        'TESTING': True,
        'DEBUG': False,
        'AUTH_REQUIRED': True,
        'ADMIN_USERS': ['professor@planetexpress.com'],
        'AUTH_PROVIDER': 'ldap',
        'ALLOWED_EMAIL_DOMAINS': ['planetexpress.com'],
        'LDAP_URL': 'ldap://localhost:389',
        'LDAP_TIMEOUT': 10,
        'LDAP_BASEDN': 'dc=planetexpress,dc=com',
        'LDAP_DOMAINS': {
            # 'planetexpress.com': 'cn=%s,ou=people,dc=planetexpress,dc=com',
        },
        'LDAP_BIND_USERNAME': 'cn=admin,dc=planetexpress,dc=com',
        'LDAP_BIND_PASSWORD': 'GoodNewsEveryone',
        'LDAP_USER_BASEDN': 'ou=people,dc=planetexpress,dc=com',
        'LDAP_USER_FILTER': '(&(uid={username})(objectClass=inetOrgPerson))',
        'LDAP_USER_NAME_ATTR': 'cn',
        'LDAP_USER_EMAIL_ATTR': 'mail',
        'LDAP_GROUP_BASEDN': 'ou=people,dc=planetexpress,dc=com',
        'LDAP_CONFIG': {
            'OPT_REFERRALS': 0,
            'OPT_PROTOCOL_VERSION': 3,
            'OPT_DEBUG_LEVEL': -1
        },
        # Scenario 1. default usage using group DN
        # 'LDAP_GROUP_FILTER': '(&(member={userdn})(objectClass=group))',
        # 'ALLOWED_LDAP_GROUPS': [
        #     'cn=admin_staff,ou=people,dc=planetexpress,dc=com',
        #     'cn=ship_crew,ou=people,dc=planetexpress,dc=com'
        # ],
        # Scenario 2. group cn is (short) group name
        # 'LDAP_GROUP_FILTER': '(&(member={userdn})(objectClass=group))',
        # 'LDAP_GROUP_NAME_ATTR': 'cn',
        # 'ALLOWED_LDAP_GROUPS': [
        #     'admin_staff',
        #     'ship_crew'
        # ],
        # Scenario 3. memberOf dn is used as group name
        'LDAP_GROUP_FILTER': '(&(uid={username})(objectClass=inetOrgPerson))',
        'LDAP_GROUP_NAME_ATTR': 'memberOf',
        'ALLOWED_LDAP_GROUPS': [
            'cn=admin_staff,ou=people,dc=planetexpress,dc=com',
            'cn=ship_crew,ou=people,dc=planetexpress,dc=com'
        ],
        'LDAP_DEFAULT_DOMAIN': 'planetexpress.com',
    }
    self.app = create_app(test_config)
    self.client = self.app.test_client()