File: test_sqlitefs.py

package info (click to toggle)
python-fs 0.5.4-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 1,452 kB
  • ctags: 2,991
  • sloc: python: 20,659; makefile: 5
file content (17 lines) | stat: -rw-r--r-- 385 bytes parent folder | download
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')