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

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

Tests for TransportSFTPServer and TransportSFTPFile.
Method setUp Undocumented
Method assertSFTPError Assert that calling functions fails with sftp_code.
Method openFile Undocumented
Method test_openFileInNonexistingDirectory Undocumented
Method test_openFileInNonDirectory Undocumented
Method test_createEmptyFile Undocumented
Method test_createFileWithData Undocumented
Method test_writeChunkToFile Undocumented
Method test_writeTwoChunks Undocumented
Method test_writeChunkToNonexistentFile Undocumented
Method test_writeToReadOpenedFile Undocumented
Method test_overwriteFile Undocumented
Method test_writeToAppendingFileIgnoresOffset Undocumented
Method test_openAndCloseExistingFileLeavesUnchanged Undocumented
Method test_openAndCloseExistingFileTruncation Undocumented
Method test_writeChunkOnDirectory Undocumented
Method test_readChunk Undocumented
Method test_readChunkPastEndOfFile Undocumented
Method test_readChunkEOF Undocumented
Method test_readChunkError Undocumented
Method test_setAttrs Undocumented
Method test_getAttrs Undocumented
Method test_getAttrsError Undocumented
Method _test_createEmptyFile_callback Undocumented
Method _test_createFileWithData_callback Undocumented
Method _test_writeChunkToFile_callback Undocumented
Method _test_writeChunkToNonexistentFile_callback Undocumented
Method _test_writeToReadOpenedFile_callback Undocumented
Method _test_overwriteFile_callback Undocumented
Method _test_writeToAppendingFileIgnoresOffset_cb Undocumented
Method _test_openAndCloseExistingFileUnchanged_cb Undocumented
Method _test_openAndCloseExistingFileTruncation_cb 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 assertSFTPError(self, sftp_code, function, *args, **kwargs):
Assert that calling functions fails with sftp_code.
def openFile(self, path, flags, attrs):
Undocumented
def test_openFileInNonexistingDirectory(self):
Undocumented
def test_openFileInNonDirectory(self):
Undocumented
def test_createEmptyFile(self):
Undocumented
def _test_createEmptyFile_callback(self, handle, filename):
Undocumented
def test_createFileWithData(self):
Undocumented
def _test_createFileWithData_callback(self, handle, filename):
Undocumented
def test_writeChunkToFile(self):
Undocumented
def _test_writeChunkToFile_callback(self, handle, filename):
Undocumented
def test_writeTwoChunks(self):
Undocumented
def test_writeChunkToNonexistentFile(self):
Undocumented
def _test_writeChunkToNonexistentFile_callback(self, handle, filename):
Undocumented
def test_writeToReadOpenedFile(self):
Undocumented
def _test_writeToReadOpenedFile_callback(self, handle):
Undocumented
def test_overwriteFile(self):
Undocumented
def _test_overwriteFile_callback(self, handle):
Undocumented
def test_writeToAppendingFileIgnoresOffset(self):
Undocumented
def _test_writeToAppendingFileIgnoresOffset_cb(self, handle, filename):
Undocumented
def test_openAndCloseExistingFileLeavesUnchanged(self):
Undocumented
def _test_openAndCloseExistingFileUnchanged_cb(self, handle, filename):
Undocumented
def test_openAndCloseExistingFileTruncation(self):
Undocumented
def _test_openAndCloseExistingFileTruncation_cb(self, handle, filename):
Undocumented
def test_writeChunkOnDirectory(self):
Undocumented
def test_readChunk(self):
Undocumented
def test_readChunkPastEndOfFile(self):
Undocumented
def test_readChunkEOF(self):
Undocumented
def test_readChunkError(self):
Undocumented
def test_setAttrs(self):
Undocumented
def test_getAttrs(self):
Undocumented
def test_getAttrsError(self):
Undocumented
API Documentation for Launchpad, generated by pydoctor at 2022-06-16 00:00:12.