use super::*;
#[test]
fn anonymous_read_is_closed_unless_it_is_asked_for() {
assert!(!anonymous_read(None), "unset must not open it");
for refused in ["false", "", "1", "yes", "True", "TRUE", " true", "true "] {
assert!(
!anonymous_read(Some(refused)),
"{refused:?} is not the string that opens it"
);
}
assert!(anonymous_read(Some("true")), "the one value that opens it");
}