def METHOD_NAME(self):
    objectid = yield self.db.state.getObjectId('someobj' * 150, 'someclass')
    expn = 'someobj' * 9 + 's132bf9b89b0cdbc040d1ebc69e0dbee85dff720a'
    self.assertNotEqual(objectid, None)
    def thd(conn):
        q = self.db.model.objects.select()
        rows = conn.execute(q).fetchall()
        self.assertEqual(
            [(r.id, r.name, r.class_name) for r in rows],
            [(objectid, expn, 'someclass')])
    yield self.db.pool.do(thd)