def METHOD_NAME(self):
    # test basic decryption
    settings.REDHAT_PASSWORD = 'sensitive'
    s = Setting.objects.filter(key='REDHAT_PASSWORD').first()
    assert s.value.startswith(PREFIX)
    assert settings.REDHAT_PASSWORD == 'sensitive'
    # re-key the setting value
    new_key = regenerate_secret_key.Command().handle()
    new_setting = Setting.objects.filter(key='REDHAT_PASSWORD').first()
    assert s.value != new_setting.value
    # wipe out the local cache so the value is pulled from the DB again
    settings.cache.delete('REDHAT_PASSWORD')
    # verify that the old SECRET_KEY doesn't work
    settings._awx_conf_memoizedcache.clear()
    with pytest.raises(InvalidToken):
        settings.REDHAT_PASSWORD
    # verify that the new SECRET_KEY *does* work
    settings._awx_conf_memoizedcache.clear()
    with override_settings(SECRET_KEY=new_key):
        assert settings.REDHAT_PASSWORD == 'sensitive'