|
Revision 164
(checked in by fumanchu, 7 years ago)
|
New testdb folder for test_storeshelve.py.
|
- Property svn:eol-style set to
native
|
| Line | |
|---|
| 1 |
"""Test the shelve Storage Manager for dejavu. |
|---|
| 2 |
|
|---|
| 3 |
Notice that, since StorageManagerShelve doesn't decompile any Expressions, |
|---|
| 4 |
this will also test all native dejavu logic functions and any other aspects |
|---|
| 5 |
of Expression(unit). |
|---|
| 6 |
""" |
|---|
| 7 |
|
|---|
| 8 |
import os |
|---|
| 9 |
|
|---|
| 10 |
opts = {u'Path': os.path.join(os.path.dirname(__file__), "testdb")} |
|---|
| 11 |
SM_class = "dejavu.storage.storeshelve.StorageManagerShelve" |
|---|
| 12 |
|
|---|
| 13 |
def run(): |
|---|
| 14 |
import zoo_fixture |
|---|
| 15 |
|
|---|
| 16 |
reload(zoo_fixture) |
|---|
| 17 |
zoo_fixture.init() |
|---|
| 18 |
zoo_fixture.run(SM_class, opts) |
|---|
| 19 |
|
|---|
| 20 |
|
|---|
| 21 |
if __name__ == "__main__": |
|---|
| 22 |
run() |
|---|