[Zope-Checkins] CVS: Zope3/lib/python/Zope/Server/FTP/tests - testFTPServer.py:1.1.4.2
Shane Hathaway
shane@cvs.zope.org
Thu, 18 Apr 2002 17:38:29 -0400
Update of /cvs-repository/Zope3/lib/python/Zope/Server/FTP/tests
In directory cvs.zope.org:/tmp/cvs-serv24954/lib/python/Zope/Server/FTP/tests
Modified Files:
Tag: Zope-3x-branch
testFTPServer.py
Log Message:
Removed unneeded host name checking
=== Zope3/lib/python/Zope/Server/FTP/tests/testFTPServer.py 1.1.4.1 => 1.1.4.2 ===
ftp = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
ftp.connect((LOCALHOST, self.port))
- result = ftp.recv(10000)
- self.assertEqual(result, status_msgs['SERVER_READY'] %(
- 'localhost.localdomain') + '\r\n')
+ result = ftp.recv(10000).split()[0]
+ self.assertEqual(result, '220')
if login:
ftp.send('USER foo\r\n')
self.assertEqual(ftp.recv(1024),