'Reset metadata on package_emboss_5_0_0_0470 and package_x11_client_1_5_proto_7_0.'

def test_0045_reset_repository_metadata(self):

    '\n                                This    is    step    9    -    Reset    metadata    on    the    package_emboss_5_0_0    and    package_x11_client_1_5_proto_7_0    repositories.    They    should\n                                now    have    only    their    tip    as    the    installable    revision.\n                                '
    package_emboss_repository = self.test_db_util.get_repository_by_name_and_owner(package_emboss_repository_name, common.test_user_1_name)
    package_x11_repository = self.test_db_util.get_repository_by_name_and_owner(package_libx11_repository_name, common.test_user_1_name)
    self.reset_repository_metadata(package_emboss_repository)
    self.reset_repository_metadata(package_x11_repository)
    assert (len(package_emboss_repository.metadata_revisions) == 1), ('Repository    package_emboss_5_0_0    has    %d    installable    revisions,    expected    1.' % len(package_emboss_repository.metadata_revisions))
    assert (len(package_x11_repository.metadata_revisions) == 1), ('Repository    package_x11_client_1_5_proto_7_0    has    %d    installable    revisions,    expected    1.' % len(package_x11_repository.metadata_revisions))
