db.py is completely unit tested