Test case for Milter.config (still failing)

This commit is contained in:
Stuart D. Gathman
2020-06-16 18:45:03 -04:00
parent cdae26af47
commit c098f9df6b
5 changed files with 58 additions and 1 deletions
+4 -1
View File
@@ -1,4 +1,7 @@
from ConfigParser import ConfigParser
try:
from configparser import ConfigParser
except:
from ConfigParser import ConfigParser
import os.path
class MilterConfigParser(ConfigParser):
+5
View File
@@ -46,6 +46,9 @@ class TestBase(object):
## The macros returned by protocol stage
self._symlist = [ None, None, None, None, None, None, None ]
def _close(self):
close(self.logfp)
def log(self,*msg):
for i in msg: print(i,file=self.logfp,end=None)
print(file=self.logfp)
@@ -204,6 +207,8 @@ class TestBase(object):
self._body.write(header)
self._body.write(b'\n\n')
self._body.write(body)
self.close()
self._close()
return rc
## Feed an email contained in a file to the %milter.