I want to use unittest in python to check if a method returns object of the right class.
Every example in the web shows tests for \'type\' returned.
For example,
This should work:
self.assertIsInstance(result, sqlalchemy.orm.query.Query)
You need to have import sqlalchemy in the file.
import sqlalchemy