Code

fix test
authorrichard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2>
Tue, 2 Feb 2010 04:59:20 +0000 (04:59 +0000)
committerrichard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2>
Tue, 2 Feb 2010 04:59:20 +0000 (04:59 +0000)
git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/roundup/trunk@4447 57a73879-2fb5-44c3-a270-3262357dd7e2

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;