def test_creating_https_password() -> None: credential = PasswordCredential('cerulean', 'kingfisher') with WebdavFileSystem( 'https://cerulean-test-webdav/protected_files', credential, host_ca_cert_file='/home/cerulean/cerulean_webdav.crt') as f: assert (f / '').is_dir()
def test_password() -> None: cred = PasswordCredential('cerulean', 'kingfisher') with SshTerminal('cerulean-test-ssh', 22, cred) as term: pass
def test_creating_http_password() -> None: credential = PasswordCredential('cerulean', 'kingfisher') with WebdavFileSystem('http://cerulean-test-webdav/protected_files', credential) as f: assert (f / '').is_dir()
def test_password_credential() -> None: cred = PasswordCredential('cerulean', 'kingfisher') assert cred.username == 'cerulean' assert cred.password == 'kingfisher'