Пример #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))
Пример #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))
Пример #3
0
 def __init__(self,file=None):
     DbmailConfig.__init__(self,file)
     self.setCursor()
Пример #4
0
 def setUp(self):
     self.o = DbmailConfig()
Пример #5
0
 def setUp(self):
     self.o=DbmailConfig()
Пример #6
0
 def __init__(self, file=None):
     DbmailConfig.__init__(self, file)
     self.setCursor()