Code

fix test
[roundup.git] / test / test_mailgw.py
index e15e2928585e441f7fc3c6eb08000e3d6e056c6b..ca3419f90510d7bc361dc0fd6d2a000b0a181e21 100644 (file)
@@ -182,8 +182,8 @@ Subject: [issue] Testing...
 From here to there!
 ''')
         assert not os.path.exists(SENDMAILDEBUG)
-        msgid = self.db.issue.get(nodeid, 'msg')[0]
-        self.assertEqual(self.db.issue.get(msgid, 'content'), 'From here to there!')
+        msgid = self.db.issue.get(nodeid, 'messages')[0]
+        self.assertEqual(self.db.msg.get(msgid, 'content'), 'From here to there!')
 
     def doNewIssue(self):
         nodeid = self._handle_mail('''Content-Type: text/plain;