A test of using CaptureMock to record and replay database access through sqlalchemy