[Zope-Checkins] CVS: Zope3/lib/python/Zope/Server/FTP/tests - testFTPServer.py:1.1.4.3
Shane Hathaway
shane@cvs.zope.org
Wed, 24 Apr 2002 16:56:54 -0400
Update of /cvs-repository/Zope3/lib/python/Zope/Server/FTP/tests
In directory cvs.zope.org:/tmp/cvs-serv5777/FTP/tests
Modified Files:
Tag: Zope-3x-branch
testFTPServer.py
Log Message:
- Made the FTP LIST command work in a platform independent manner. We now
expect the ST_UID and ST_GID fields in the tuples returned by listdir()
to contain a string if the file list should show the user name of the
owner.
- Made sure the FTP data connection gets closed when the control connection
closes.
- testFTPServer.execute() now only returns the first line of a multi-line
result.
=== Zope3/lib/python/Zope/Server/FTP/tests/testFTPServer.py 1.1.4.2 => 1.1.4.3 ===
ftp.send('%s\r\n' %command)
result = ftp.recv(10000)
- #print result[:-2]
self.failUnless(result.endswith('\r\n'))
finally:
ftp.close()
- return result[:-2]
+ return result.split('\r\n')[0]
def testABOR(self):