'Update the filtering repository\'s readme component review to reflect the presence of the readme file.'

def test_0095_review_new_changeset_readme_component(self):

    "\n                                We    are    at    step    20.\n                                There    is    now    a    new    changeset    revision    in    the    repository's    changelog,    but    it    has    no    review    associated    with    it.\n                                Get    the    previously    reviewed    changeset    hash,    and    pass    that    and    the    review    id    to    the    create_repository_review\n                                method,    in    order    to    copy    the    previous    review's    contents.    Then    update    the    new    review    to    reflect    the    presence    of\n                                a    readme    file.\n                                "
    self.login(email=common.test_user_2_email, username=common.test_user_2_name)
    repository = self.test_db_util.get_repository_by_name_and_owner(repository_name, common.test_user_1_name)
    user = self.test_db_util.get_user(common.test_user_2_email)
    last_review = self.get_last_reviewed_revision_by_user(user, repository)
    if (last_review is None):
        raise AssertionError('Previous    review    expected,    none    found.')
    review_contents_dict = {'README': dict(rating=5, comment='Clear    and    concise    readme    file,    a    true    pleasure    to    read.', approved='yes', private='no')}
    self.create_repository_review(repository, review_contents_dict, changeset_revision=self.get_repository_tip(repository), copy_from=(str(last_review.changeset_revision), last_review.id))
