def METHOD_NAME(self):
    # test auth with username, password, etc.
    OpenStackAdapter(machine_type="test2large", site_name="TestSite")
    for key in (
        "username",
        "password",
        "project_name",
        "user_domain_name",
        "project_domain_name",
    ):
        delattr(self.config.TestSite, key)
    self.config.TestSite["application_credential_id"] = "TestAppId"
    self.config.TestSite["application_credential_secret"] = "TestAppSecret"
    # test auth with application credentials
    OpenStackAdapter(machine_type="test2large", site_name="TestSite")