
    #[test]
    fn test_non_authorized() {
        let content = String::from(PASSWORD) + "\n" + NOTES;

        let session = Session::default();
        let args = [RESOURCE.to_owned(), content];
        let mut arg_iter = args.iter().cloned();

        assert!(matches!(
            new_record(&session, &mut arg_iter),
            Err(Error::UnacceptableRequestAtThisState)
        ));