diff options
author | Marcel Hellkamp <marc@gsites.de> | 2009-07-24 10:36:50 +0200 |
---|---|---|
committer | Marcel Hellkamp <marc@gsites.de> | 2009-07-24 10:36:50 +0200 |
commit | 30c1dfcf354e756ebe3454f5697bcaa0c48419a1 (patch) | |
tree | 3a8d8d33cbd471ee9924864c1ba0b5ea1b489ad3 | |
parent | 963d8e11a86d56203990f02fb39d3ca0a54ab61f (diff) | |
download | bottle-30c1dfcf354e756ebe3454f5697bcaa0c48419a1.tar.gz |
Python does what it wants when creating db files...
-rw-r--r-- | test/test_db.py | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/test/test_db.py b/test/test_db.py index 0bcb076..2341d38 100644 --- a/test/test_db.py +++ b/test/test_db.py @@ -15,11 +15,6 @@ class TestDB(unittest.TestCase): def test_save(self): """ DB: Save to disk """ - if os.path.exists('/tmp/db1.db'): - os.unlink('/tmp/db1.db') - if os.path.exists('/tmp/db2.db'): - os.unlink('/tmp/db2.db') - data = [1, 1.5, 'a', u'รค'] bottle.db.db1.value1 = data bottle.db['db2']['value2'] = data @@ -29,8 +24,6 @@ class TestDB(unittest.TestCase): bottle.db.close() self.assertEqual(bottle.db['db1']['value1'], data) self.assertEqual(bottle.db.db2.value2, data) - self.assertTrue(os.path.exists('/tmp/db1.db')) - self.assertTrue(os.path.exists('/tmp/db2.db')) suite = unittest.TestSuite() suite.addTest(unittest.makeSuite(TestDB)) |