l.c.t.t.TestSFTPServer(TestCaseInTempDir, SFTPTestMixin) : class documentation

Part of lp.codehosting.tests.test_sftp View In Hierarchy

Tests for TransportSFTPServer and TransportSFTPFile.
Method setUp Undocumented
Method test_serverSetAttrs Undocumented
Method test_serverGetAttrs Undocumented
Method test_serverGetAttrsError Undocumented
Method test_removeFile Undocumented
Method test_removeFileError Undocumented
Method test_removeFile_directory Undocumented
Method test_renameFile Undocumented
Method test_renameFileError Undocumented
Method test_makeDirectory Undocumented
Method test_makeDirectoryError Undocumented
Method test_removeDirectory Undocumented
Method test_removeDirectoryError Undocumented
Method test_gotVersion Undocumented
Method test_extendedRequest Undocumented
Method test_realPath Undocumented
Method test_makeLink Undocumented
Method test_readLink Undocumented
Method test_openDirectory Undocumented
Method test_openDirectoryError Undocumented
Method test_openDirectoryMemory openDirectory works on MemoryTransport.
Method test__format_directory_entries_with_MemoryStat format_directory_entries works with MemoryStat.
Method do_translation_test Test that exception is translated into the correct SFTPError.
Method test_translatePermissionDenied Undocumented
Method test_translateTransportNotPossible Undocumented
Method test_translateNoSuchFile Undocumented
Method test_translateFileExists Undocumented
Method test_translateFileIsADirectory Undocumented
Method test_translateDirectoryNotEmpty Undocumented
Method test_translateRandomError Undocumented

Inherited from SFTPTestMixin:

Method checkAttrs Check that an attrs dictionary matches a stat result.
Method getPathSegment Return a unique path segment for testing.
def setUp(self):
Undocumented
def test_serverSetAttrs(self):
Undocumented
def test_serverGetAttrs(self):
Undocumented
def test_serverGetAttrsError(self):
Undocumented
def test_removeFile(self):
Undocumented
def test_removeFileError(self):
Undocumented
def test_removeFile_directory(self):
Undocumented
def test_renameFile(self):
Undocumented
def test_renameFileError(self):
Undocumented
def test_makeDirectory(self):
Undocumented
def test_makeDirectoryError(self):
Undocumented
def test_removeDirectory(self):
Undocumented
def test_removeDirectoryError(self):
Undocumented
def test_gotVersion(self):
Undocumented
def test_extendedRequest(self):
Undocumented
def test_realPath(self):
Undocumented
def test_makeLink(self):
Undocumented
def test_readLink(self):
Undocumented
def test_openDirectory(self):
Undocumented
def test_openDirectoryError(self):
Undocumented
def test_openDirectoryMemory(self):
openDirectory works on MemoryTransport.
def test__format_directory_entries_with_MemoryStat(self):
format_directory_entries works with MemoryStat.

MemoryStat lacks many fields, but format_directory_entries works around that.

def do_translation_test(self, exception, sftp_code, method_name=None):
Test that exception is translated into the correct SFTPError.
def test_translatePermissionDenied(self):
Undocumented
def test_translateTransportNotPossible(self):
Undocumented
def test_translateNoSuchFile(self):
Undocumented
def test_translateFileExists(self):
Undocumented
def test_translateFileIsADirectory(self):
Undocumented
def test_translateDirectoryNotEmpty(self):
Undocumented
def test_translateRandomError(self):
Undocumented
API Documentation for Launchpad, generated by pydoctor at 2018-10-17 00:00:11.