()
| 815 | |
| 816 | #[test] |
| 817 | fn test_login_logout_flow_once() { |
| 818 | let mut t = ClientTester::default(); |
| 819 | t.get_service().borrow_mut().add_mock_login( |
| 820 | "u1", |
| 821 | "p1", |
| 822 | Ok(LoginResponse { access_token: AccessToken::new("token 1"), motd: vec![] }), |
| 823 | ); |
| 824 | assert!(!t.get_storage().borrow().mounted().contains_key("CLOUD")); |
| 825 | t.run(r#"LOGIN "u1", "p1": LOGOUT"#) |
| 826 | .expect_prints(["", " Unmounted CLOUD drive", " Good bye!", ""]) |
| 827 | .check(); |
| 828 | assert!(!t.get_storage().borrow().mounted().contains_key("CLOUD")); |
| 829 | } |
| 830 | |
| 831 | #[test] |
| 832 | fn test_login_logout_flow_multiple() { |
nothing calls this directly
no test coverage detected