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()
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()
def __init__(self,userid,file=None): Dbmail.__init__(self,file) self._table="%sauto_replies" % self._prefix self.setUser(DbmailUser(userid)) assert(self.getUser() != None)
def __init__(self, userid, file=None): Dbmail.__init__(self, file) self._table = "%sauto_replies" % self._prefix self.setUser(DbmailUser(userid)) assert (self.getUser() != None)
def setUp(self): self.o = Dbmail()
def setUp(self): self.o=Dbmail()