view python/tests/storage.txt @ 516:bce1fe45d1b2

corrected bugs detected by tests (because of moving functions around modules
author Nicolas Saunier <nicolas.saunier@polymtl.ca>
date Fri, 06 Jun 2014 14:14:01 -0400
parents dc1faa7287bd
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
[]