Example #1
0
 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))
Example #2
0
    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))
Example #3
0
 def __init__(self,file=None):
     DbmailConfig.__init__(self,file)
     self.setCursor()
Example #4
0
 def setUp(self):
     self.o = DbmailConfig()
Example #5
0
 def setUp(self):
     self.o=DbmailConfig()
Example #6
0
 def __init__(self, file=None):
     DbmailConfig.__init__(self, file)
     self.setCursor()