l.c.t.t.SFTPTestMixin : class documentation

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

Known subclasses: lp.codehosting.tests.test_sftp.TestSFTPFile, lp.codehosting.tests.test_sftp.TestSFTPServer

Mixin used to check getAttrs.
Method setUp Undocumented
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 checkAttrs(self, attrs, stat_value):
Check that an attrs dictionary matches a stat result.
def getPathSegment(self):
Return a unique path segment for testing.

This returns a path segment such that 'path != unescape(path)'. This exercises the interface between the sftp server and the Bazaar transport, which expects escaped URL segments.

API Documentation for Launchpad, generated by pydoctor at 2022-06-16 00:00:12.