comparison test/db_test_base.py @ 4350:23bf9290140a

don't have mailgw tests close the db - they're not testing persistence
author Richard Jones <richard@users.sourceforge.net>
date Mon, 08 Feb 2010 08:30:37 +0000
parents f0faef4dd023
children 0e81742d0e2f
comparison
equal deleted inserted replaced
4349:f0faef4dd023 4350:23bf9290140a
1861 # remove previous test, ignore errors 1861 # remove previous test, ignore errors
1862 if os.path.exists(config.DATABASE): 1862 if os.path.exists(config.DATABASE):
1863 shutil.rmtree(config.DATABASE) 1863 shutil.rmtree(config.DATABASE)
1864 os.makedirs(config.DATABASE + '/files') 1864 os.makedirs(config.DATABASE + '/files')
1865 1865
1866 def open_database(self):
1867 self.db = self.module.Database(config, 'admin')
1868
1866 def test_reservedProperties(self): 1869 def test_reservedProperties(self):
1867 self.open_database() 1870 self.open_database()
1868 self.assertRaises(ValueError, self.module.Class, self.db, "a", 1871 self.assertRaises(ValueError, self.module.Class, self.db, "a",
1869 creation=String()) 1872 creation=String())
1870 self.assertRaises(ValueError, self.module.Class, self.db, "a", 1873 self.assertRaises(ValueError, self.module.Class, self.db, "a",

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