def METHOD_NAME(device_slog):
    """Verify session_log does not contain password or secret."""
    conn = ConnectHandler(**device_slog)
    conn.session_log.write("\nTesting password and secret replacement\n")
    conn.session_log.write("This is my password {}\n".format(conn.password))
    conn.session_log.write("This is my secret {}\n".format(conn.secret))
    file_name = device_slog["session_log"]
    with open(file_name, "r") as f:
        session_log = f.read()
    if conn.password:
        assert conn.password not in session_log
    if conn.secret:
        assert conn.secret not in session_log