Esempio n. 1
0
    class testDbmail(unittest.TestCase):
        def setUp(self):
            self.o = Dbmail()

        def testGetConfig(self):
            self.failUnless(self.o.getConfig().has_key('db'))

        def testSetCursor(self):
            self.o.setCursor()
Esempio n. 2
0
    class testDbmail(unittest.TestCase):
        def setUp(self):
            self.o=Dbmail()

        def testGetConfig(self):
            self.failUnless(self.o.getConfig().has_key('db'))

        def testSetCursor(self):
            self.o.setCursor()
Esempio n. 3
0
 def __init__(self,userid,file=None):
     Dbmail.__init__(self,file)
     self._table="%sauto_replies" % self._prefix
     self.setUser(DbmailUser(userid))
     assert(self.getUser() != None)
Esempio n. 4
0
 def __init__(self, userid, file=None):
     Dbmail.__init__(self, file)
     self._table = "%sauto_replies" % self._prefix
     self.setUser(DbmailUser(userid))
     assert (self.getUser() != None)
Esempio n. 5
0
 def setUp(self):
     self.o = Dbmail()
Esempio n. 6
0
 def setUp(self):
     self.o=Dbmail()