

def accept_revision_as_user(self, revisionid, username):
    "Set an existing Differential revision to 'accepted'.\n\n        :revisionid: id of the Differential revision to accept\n        :username: username for the reviewer of the revision\n        :returns: None\n\n        "
    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