class testDbmailConfig(unittest.TestCase): def setUp(self): self.o=DbmailConfig() def testParse(self): self.failUnless(type(self.o._config)==type({})) self.failUnless(self.o._config.has_key('SMTP')) def testGetConfig(self): self.failUnless(self.o.getConfig()) self.failUnless(self.o.getConfig('SMTP','SENDMAIL')) self.failUnless(type(int(self.o.getConfig('IMAP','NCHILDREN')))==type(1))
class testDbmailConfig(unittest.TestCase): def setUp(self): self.o = DbmailConfig() def testParse(self): self.failUnless(type(self.o._config) == type({})) self.failUnless(self.o._config.has_key('SMTP')) def testGetConfig(self): self.failUnless(self.o.getConfig()) self.failUnless(self.o.getConfig('SMTP', 'SENDMAIL')) self.failUnless( type(int(self.o.getConfig('IMAP', 'NCHILDREN'))) == type(1))
def __init__(self,file=None): DbmailConfig.__init__(self,file) self.setCursor()
def setUp(self): self.o = DbmailConfig()
def setUp(self): self.o=DbmailConfig()
def __init__(self, file=None): DbmailConfig.__init__(self, file) self.setCursor()