Пример #1
0
def test_get_file_with_valid_file():
    sftp = pysftp.Connection(FTP_URL, username=USERNAME, password=PASSWORD)
    output = ftp.get_file(sftp, ".bashrc")
    
    #Output should not be True
    assert output
Пример #2
0
def test_get_file_with_invalid_file():
    sftp = pysftp.Connection(FTP_URL, username=USERNAME, password=PASSWORD)
    output = ftp.get_file(sftp, "Non-existent.file")
    
    #Output should not be False
    assert not output