def testGetObject(self):
        session = yield self.data.create(self)
        query = session.query(Instrument)
        obj = yield query.get(id=2)
        self.assertEqual(obj.id, 2)
        self.assertTrue(obj.name)
        obj2 = yield query.get(name=obj.name)
        self.assertEqual(obj, obj2)
Test get method for id and unique field
dataset/ETHPy150Open lsbardel/python-stdnet/tests/all/topics/finance.py/TestFinanceApplication.testGetObject