comparison test/db_test_base.py @ 3999:953234004ba2

unit test fix for added property
author Richard Jones <richard@users.sourceforge.net>
date Tue, 19 Aug 2008 00:52:01 +0000
parents edbb89730dc2
children 3dec28d96583
comparison
equal deleted inserted replaced
3998:20c9a1cefb39 3999:953234004ba2
13 # BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS 13 # BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
14 # FOR A PARTICULAR PURPOSE. THE CODE PROVIDED HEREUNDER IS ON AN "AS IS" 14 # FOR A PARTICULAR PURPOSE. THE CODE PROVIDED HEREUNDER IS ON AN "AS IS"
15 # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE, 15 # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
16 # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. 16 # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
17 # 17 #
18 # $Id: db_test_base.py,v 1.99 2008-08-18 06:57:49 richard Exp $ 18 # $Id: db_test_base.py,v 1.100 2008-08-19 00:52:01 richard Exp $
19 19
20 import unittest, os, shutil, errno, imp, sys, time, pprint, sets, base64, os.path 20 import unittest, os, shutil, errno, imp, sys, time, pprint, sets, base64, os.path
21 21
22 from roundup.hyperdb import String, Password, Link, Multilink, Date, \ 22 from roundup.hyperdb import String, Password, Link, Multilink, Date, \
23 Interval, DatabaseError, Boolean, Number, Node 23 Interval, DatabaseError, Boolean, Number, Node
1762 self.db.post_init() 1762 self.db.post_init()
1763 props = self.db.issue.getprops() 1763 props = self.db.issue.getprops()
1764 keys = props.keys() 1764 keys = props.keys()
1765 keys.sort() 1765 keys.sort()
1766 self.assertEqual(keys, ['activity', 'actor', 'assignedto', 'creation', 1766 self.assertEqual(keys, ['activity', 'actor', 'assignedto', 'creation',
1767 'creator', 'deadline', 'files', 'fixer', 'foo', 'id', 'messages', 1767 'creator', 'deadline', 'feedback', 'files', 'fixer', 'foo', 'id',
1768 'nosy', 'priority', 'spam', 'status', 'superseder']) 1768 'messages', 'nosy', 'priority', 'spam', 'status', 'superseder'])
1769 self.assertEqual(self.db.issue.list(), ['1']) 1769 self.assertEqual(self.db.issue.list(), ['1'])
1770 1770
1771 def testNosyMail(self) : 1771 def testNosyMail(self) :
1772 """Creates one issue with two attachments, one smaller and one larger 1772 """Creates one issue with two attachments, one smaller and one larger
1773 than the set max_attachment_size. 1773 than the set max_attachment_size.

Roundup Issue Tracker: http://roundup-tracker.org/