def accept_revision_as_user(self, revisionid, username):
        """Set an existing Differential revision to 'accepted'.

        :revisionid: id of the Differential revision to accept
        :username: username for the reviewer of the revision
        :returns: None

        """
        revision = self._data.get_revision(revisionid)
        self._data.assert_is_user(username)
        assert not revision.is_closed()
        assert revision.author != username
        revision.set_accepted()
        self._data.set_changed()
dataset/ETHPy150Open bloomberg/phabricator-tools/py/abd/abdt_conduitmock.py/ConduitMock.accept_revision_as_user/original