示例#1
0
 def test_delete_database_existent(self):
     temp_dir = self.createTempDir(prefix='u1db-test-')
     path = temp_dir + '/new.sqlite'
     db = sqlcipher_open(path, "123", create=True)
     db.close()
     SQLCipherDatabase.delete_database(path)
     self.assertRaises(errors.DatabaseDoesNotExist,
                       sqlcipher_open, path, "123",
                       create=False)
示例#2
0
 def test_delete_database_existent(self):
     path = self.tempdir + '/new.sqlite'
     db = sqlcipher_open(path, "123", create=True)
     db.close()
     SQLCipherDatabase.delete_database(path)
     self.assertRaises(errors.DatabaseDoesNotExist,
                       sqlcipher_open,
                       path,
                       "123",
                       create=False)
示例#3
0
 def test_delete_database_existent(self):
     temp_dir = self.createTempDir(prefix='u1db-test-')
     path = temp_dir + '/new.sqlite'
     db = sqlcipher_open(path, "123", create=True)
     db.close()
     SQLCipherDatabase.delete_database(path)
     self.assertRaises(errors.DatabaseDoesNotExist,
                       sqlcipher_open,
                       path,
                       "123",
                       create=False)