comparison test/test_schema.py @ 432:f97415cccb9d

Fixes so the tests use commit and not close
author Richard Jones <richard@users.sourceforge.net>
date Mon, 03 Dec 2001 21:33:39 +0000
parents a4241ddd22d7
children dce4c75bef5a c242455d9b46
comparison
equal deleted inserted replaced
431:a28a80b714f9 432:f97415cccb9d
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: test_schema.py,v 1.5 2001-10-09 07:25:59 richard Exp $ 18 # $Id: test_schema.py,v 1.6 2001-12-03 21:33:39 richard Exp $
19 19
20 import unittest, os, shutil 20 import unittest, os, shutil
21 21
22 from roundup.backends import anydbm 22 from roundup.backends import anydbm
23 from roundup.hyperdb import String, Password, Link, Multilink, Date, \ 23 from roundup.hyperdb import String, Password, Link, Multilink, Date, \
33 os.mkdir('_test_dir') 33 os.mkdir('_test_dir')
34 self.db = Database('_test_dir', 'test') 34 self.db = Database('_test_dir', 'test')
35 self.db.clear() 35 self.db.clear()
36 36
37 def tearDown(self): 37 def tearDown(self):
38 self.db.close()
39 shutil.rmtree('_test_dir') 38 shutil.rmtree('_test_dir')
40 39
41 def testA_Status(self): 40 def testA_Status(self):
42 status = Class(self.db, "status", name=String()) 41 status = Class(self.db, "status", name=String())
43 self.assert_(status, 'no class object generated') 42 self.assert_(status, 'no class object generated')
74 return unittest.makeSuite(SchemaTestCase, 'test') 73 return unittest.makeSuite(SchemaTestCase, 'test')
75 74
76 75
77 # 76 #
78 # $Log: not supported by cvs2svn $ 77 # $Log: not supported by cvs2svn $
78 # Revision 1.5 2001/10/09 07:25:59 richard
79 # Added the Password property type. See "pydoc roundup.password" for
80 # implementation details. Have updated some of the documentation too.
81 #
79 # Revision 1.4 2001/08/07 00:24:43 richard 82 # Revision 1.4 2001/08/07 00:24:43 richard
80 # stupid typo 83 # stupid typo
81 # 84 #
82 # Revision 1.3 2001/08/07 00:15:51 richard 85 # Revision 1.3 2001/08/07 00:15:51 richard
83 # Added the copyright/license notice to (nearly) all files at request of 86 # Added the copyright/license notice to (nearly) all files at request of

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