Just as an fyi, i went for the below as my std test for TinyDB. I decided to stick with versions rather than test for methods. As I say, when I am working on iOS with Pythonista, its a little different.
'''
Import tinydb and make sure we have a version we can work with
'''
from tinydb import TinyDB, where, __version__
minimum_version = (3, 7, 0)
if not tuple(int(i) for i in __version__.split('.')) >= minimum_version:
msg = '''Your version of TinyDB is out of date for the functionality ''' \
'''required by this App. Your version is {}. Version {} is required.'''
raise ValueError(msg.format(__version__,\
str(minimum_version).replace(', ', '.')))