()
| 732 | |
| 733 | #[test] |
| 734 | fn test_login_twice() { |
| 735 | let mut t = ClientTester::default(); |
| 736 | t.get_service().borrow_mut().add_mock_login( |
| 737 | "the-username", |
| 738 | "the-password", |
| 739 | Ok(LoginResponse { access_token: AccessToken::new("random token"), motd: vec![] }), |
| 740 | ); |
| 741 | assert!(!t.get_storage().borrow().mounted().contains_key("CLOUD")); |
| 742 | t.run(r#"LOGIN "the-username", "the-password": LOGIN "a", "b""#) |
| 743 | .expect_access_token("random token") |
| 744 | .expect_err("1:39: Cannot LOGIN again before LOGOUT") |
| 745 | .check(); |
| 746 | assert!(t.get_storage().borrow().mounted().contains_key("CLOUD")); |
| 747 | } |
| 748 | |
| 749 | #[test] |
| 750 | fn test_login_errors() { |
nothing calls this directly
no test coverage detected