aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2006-07-29 21:49:05 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2006-07-29 21:49:05 +0000
commit319fafa72114c3c6089e1ce2a59e8db7beceae62 (patch)
treed42f2721b3c7b90f136275eb55df2c1af4635d4e
parent5703c6e076b08bf223930b2f3c86225f492f9202 (diff)
downloadpaludis-319fafa72114c3c6089e1ce2a59e8db7beceae62.tar.gz
paludis-319fafa72114c3c6089e1ce2a59e8db7beceae62.tar.xz
Update tests for new version_metadata behaviour
-rw-r--r--paludis/repositories/portage/portage_repository_TEST.cc9
1 files changed, 4 insertions, 5 deletions
diff --git a/paludis/repositories/portage/portage_repository_TEST.cc b/paludis/repositories/portage/portage_repository_TEST.cc
index 454928b..3104ab6 100644
--- a/paludis/repositories/portage/portage_repository_TEST.cc
+++ b/paludis/repositories/portage/portage_repository_TEST.cc
@@ -499,11 +499,10 @@ namespace test_cases
m = repo->version_metadata(QualifiedPackageName("cat-one/pkg-one"), VersionSpec("1"));
TEST_CHECK_EQUAL(m->get<vm_description>(), "the-description");
- m = repo->version_metadata(QualifiedPackageName("cat-one/pkg-one"), VersionSpec("2"));
- TEST_CHECK_EQUAL(m->get<vm_description>(), "");
-
- m = repo->version_metadata(QualifiedPackageName("cat-two/pkg-one"), VersionSpec("1"));
- TEST_CHECK_EQUAL(m->get<vm_description>(), "");
+ TEST_CHECK_THROWS(repo->version_metadata(QualifiedPackageName("cat-one/pkg-one"), VersionSpec("2")),
+ NoSuchPackageError);
+ TEST_CHECK_THROWS(repo->version_metadata(QualifiedPackageName("cat-two/pkg-one"), VersionSpec("1")),
+ NoSuchPackageError);
}
}
} test_portage_repository_metadata_cached;