[Checkins] SVN: zc.ngi/trunk/src/zc/ngi/tests.py Fixed a testing bug. The original test mostly tested the fix it was

Jim Fulton jim at zope.com
Thu Jul 22 13:08:54 EDT 2010


Log message for revision 114930:
  Fixed a testing bug.  The original test mostly tested the fix it was
  supposed to, but not in a complete and completely sane way.
  

Changed:
  U   zc.ngi/trunk/src/zc/ngi/tests.py

-=-
Modified: zc.ngi/trunk/src/zc/ngi/tests.py
===================================================================
--- zc.ngi/trunk/src/zc/ngi/tests.py	2010-07-22 17:01:10 UTC (rev 114929)
+++ zc.ngi/trunk/src/zc/ngi/tests.py	2010-07-22 17:08:54 UTC (rev 114930)
@@ -561,7 +561,7 @@
     >>> @zc.ngi.adapters.Lines.handler
     ... def echo(connection):
     ...     while 1:
-    ...         connection.write((yield).upper())
+    ...         connection.write((yield).upper()+'\n')
 
     >>> listener = zc.ngi.testing.listener('a', echo)
 
@@ -572,6 +572,7 @@
     ...     print 'client got', response
 
     >>> zc.ngi.testing.connect('a', client)
+    client got TEST
 
     >>> listener.close()
     """



More information about the checkins mailing list