Handle varargs in setreply
This commit is contained in:
1 parent
242f2fa78f
commit
4854f95b59
1 file changed
+2
-2
+2
-2
@@ -62,8 +62,8 @@ class TestBase(object):
|
||||
raise IOError,"addrcpt not called from eom()"
|
||||
self._addrcpt.append(rcpt)
|
||||
|
||||
def setreply(self,rcode,xcode,msg):
|
||||
self.reply = (rcode,xcode,msg)
|
||||
def setreply(self,rcode,xcode,*msg):
|
||||
self.reply = (rcode,xcode) + msg
|
||||
|
||||
def feedFile(self,fp,sender="[email protected]",rcpt="[email protected]"):
|
||||
self._body = None
|
||||
|
||||
Reference in new issue
Block a user