freezer.tests.unit.storages.test_ftp module

freezer.tests.unit.storages.test_ftp module

class freezer.tests.unit.storages.test_ftp.BaseFtpStorageTestCase(methodName='runTest')

Bases: unittest.case.TestCase

setUp()

Hook method for setting up the test fixture before exercising it.

test_validate_BaseFtpStorage()
class freezer.tests.unit.storages.test_ftp.FtpStorageTestCase(methodName='runTest')

Bases: unittest.case.TestCase

create_ftp_test_file()
create_ftpstorage_obj()
delete_ftp_test_file()
setUp()

Hook method for setting up the test fixture before exercising it.

test_add_stream_FtpStorage(mock_ftp_constructor, mock_open, mock_put_file, mock_create_dirs)
test_create_dirs_ok_FtpStorage(mock_ftp_constructor)
test_create_tempdir_FtpStorage(mock_ftp_constructor, mock_tempfile_constructor)
test_getfile_ok_FtpStorage(mock_ftp_constructor)
test_init_fail_raise_FtpStorage(mock_ftp_constructor)
test_init_ok_FtpStorage(mock_ftp_constructor)
test_listdir_fail_raise_FtpStorage(mock_ftp_constructor)
test_listdir_ok_FtpStorage(mock_ftp_constructor)
test_putfile_ok_FtpStorage(mock_ftp_constructor)
test_rmtree_ok_FtpStorage(mock_ftp_constructor)
test_write_backup_FtpStorage(mock_ftp_constructor, mock_open, mock_put_file, mock_create_dirs)
class freezer.tests.unit.storages.test_ftp.FtpsStorageTestCase(methodName='runTest')

Bases: unittest.case.TestCase

create_ftpsStorage_obj()
setUp()

Hook method for setting up the test fixture before exercising it.

test_init_fail_FtpsStorage()
test_init_ok_FtpsStorage(mock_ftp_constructor)
Creative Commons Attribution 3.0 License

Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.