예제 #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