コード例 #1
0
ファイル: test_ftp.py プロジェクト: agile-pdx/FTPy
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
ファイル: test_ftp.py プロジェクト: agile-pdx/FTPy
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