[Spambayes-checkins]
spambayes/spambayes/test test_sb-server.py, 1.5, 1.6
Tony Meyer
anadelonbrin at users.sourceforge.net
Tue Aug 3 08:51:03 CEST 2004
Update of /cvsroot/spambayes/spambayes/spambayes/test
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv23435/spambayes/test
Modified Files:
test_sb-server.py
Log Message:
Implement [ 909088 ] remove STLS pop3 capability
Remove STLS like we remove PIPELINING, using Richie's suggested code.
Also update the test.
Index: test_sb-server.py
===================================================================
RCS file: /cvsroot/spambayes/spambayes/spambayes/test/test_sb-server.py,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** test_sb-server.py 3 Dec 2003 00:35:58 -0000 1.5
--- test_sb-server.py 3 Aug 2004 06:51:00 -0000 1.6
***************
*** 167,173 ****
test purposes - the POP3 proxy *doesn't* support pipelining, and
we test that it correctly filters out that capability from the
! proxied capability list."""
lines = ["+OK Capability list follows",
"PIPELINING",
"TOP",
".",
--- 167,174 ----
test purposes - the POP3 proxy *doesn't* support pipelining, and
we test that it correctly filters out that capability from the
! proxied capability list. Ditto for STLS."""
lines = ["+OK Capability list follows",
"PIPELINING",
+ "STLS",
"TOP",
".",
***************
*** 284,287 ****
--- 285,299 ----
assert response.find("PIPELINING") == -1
+ # Verify that the test server claims to support STLS.
+ pop3Server.send("capa\r\n")
+ response = pop3Server.recv(1000)
+ assert response.find("STLS") >= 0
+
+ # Ask for the capabilities via the proxy, and verify that the proxy
+ # is filtering out the PIPELINING capability.
+ proxy.send("capa\r\n")
+ response = proxy.recv(1000)
+ assert response.find("STLS") == -1
+
# Stat the mailbox to get the number of messages.
proxy.send("stat\r\n")
More information about the Spambayes-checkins
mailing list