freezer.tests.unit.storages.test_ftp module
updated: 2023-03-22 15:08
freezer.tests.unit.storages.test_ftp module
-
class freezer.tests.unit.storages.test_ftp.BaseFtpStorageTestCase(methodName='runTest')
Bases: 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: 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: 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)
updated: 2023-03-22 15:08