[Checkins] SVN: zope.app.fssync/branches/jim-hack/src/zope/app/fssync/tests/ssh.txt Fix tests to make them pass.
Amos Latteier
amos at latteier.com
Wed Feb 11 16:18:24 EST 2009
Log message for revision 96454:
Fix tests to make them pass.
Changed:
U zope.app.fssync/branches/jim-hack/src/zope/app/fssync/tests/ssh.txt
-=-
Modified: zope.app.fssync/branches/jim-hack/src/zope/app/fssync/tests/ssh.txt
===================================================================
--- zope.app.fssync/branches/jim-hack/src/zope/app/fssync/tests/ssh.txt 2009-02-11 21:11:00 UTC (rev 96453)
+++ zope.app.fssync/branches/jim-hack/src/zope/app/fssync/tests/ssh.txt 2009-02-11 21:18:24 UTC (rev 96454)
@@ -75,14 +75,13 @@
Even though we don't have a real encrypted network connection, let's
see what the connection object would send over the ssh channel.
-
- >>> class StubChannel(object):
- ... def send(self, data):
+ >>> class StubFile(object):
+ ... def write(self, data):
... print repr(data)
+ >>> class StubChannel(object):
... def close(self): pass
-
>>> c.channel = StubChannel()
-
+ >>> c.channelw = StubFile()
>>> c.putheader('Header Name', 'Header value')
'Header Name: Header value\r\n'
@@ -98,7 +97,7 @@
>>> from cStringIO import StringIO
>>> f = StringIO("""HTTP/1.0 200 OK\r\nHeader: value\r\n\r\nBody""")
>>> f.seek(0)
- >>> c.channelf = f
+ >>> c.channelr = f
>>> class StubTransport(object):
... def close(self): pass
>>> c.transport = StubTransport()
More information about the Checkins
mailing list