view python/tests/storage.txt @ 539:53587cc86f7d

added one test script that runs C++, Python and future script tests
author Nicolas Saunier <nicolas.saunier@polymtl.ca>
date Fri, 04 Jul 2014 13:08:58 -0400
parents bce1fe45d1b2
children 36605d843be5
line wrap: on
line source

>>> from storage import *

>>> f = openCheck('non_existant_file.txt')
File non_existant_file.txt could not be opened.

>>> loadPrototypeMatchIndexesFromSqlite("nonexistent")
DB Error: no such table: prototypes
[]
>>> loadTrajectoriesFromSqlite("nonexistent", 'feature')
DB Error: no such table: positions
DB Error: no such table: velocities
[]