def METHOD_NAME(self):
    tbl = self.db.model.masters
    hash = hashlib.sha1(b'somemaster').hexdigest()
    id = yield self.db.base.findSomethingId(
        tbl=self.db.model.masters,
        whereclause=(tbl.c.name_hash == hash),
        insert_values={"name": 'somemaster', "name_hash": hash, "active": 1, "last_active": 1})
    self.assertEqual(id, 1)