summaryrefslogtreecommitdiff
path: root/fs/tests/test_sqlitefs.py
blob: f0a8ca93529550154e92814c08386c7f1e74962b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
try:
    from fs.contrib.sqlitefs import SqliteFS
except ImportError:
    SqliteFS = None
from fs.tests import FSTestCases
import unittest

import os

if SqliteFS:
    class TestSqliteFS(unittest.TestCase, FSTestCases):
        def setUp(self):
            self.fs = SqliteFS("sqlitefs.db")
        def tearDown(self):
            os.remove('sqlitefs.db')