Fix RepoindexFileReader_test to check default values
authorMichael Andres <ma@suse.de>
Tue, 22 Feb 2011 15:23:55 +0000 (16:23 +0100)
committerMichael Andres <ma@suse.de>
Tue, 22 Feb 2011 15:23:55 +0000 (16:23 +0100)
tests/parser/RepoindexFileReader_test.cc

index f89ce73..dd1f25e 100644 (file)
@@ -46,6 +46,10 @@ BOOST_AUTO_TEST_CASE(read_index_file)
     BOOST_CHECK_EQUAL("company-foo", repo.alias());
     BOOST_CHECK_EQUAL("sle-11-i386", repo.targetDistribution());
     BOOST_CHECK_EQUAL(20, repo.priority());
+    // "Repository is per default disabled"
+    BOOST_CHECK(!repo.enabled());
+    // "Repository autorefresh is per default enabled"
+    BOOST_CHECK(repo.autorefresh());
     BOOST_CHECK_EQUAL("/repo/products/foo", repo.path());
 
     collector.repos.pop_front( );