summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorMichael Vogt <egon@debian-devbox>2012-10-17 10:29:52 +0200
committerMichael Vogt <egon@debian-devbox>2012-10-17 10:29:52 +0200
commitd4273c55e34cdf5a355b4edd92df61a83cfab318 (patch)
tree171d8a91864f0b746c58ded2f1c2bdaf0bb82d29 /test
parent20a2b201389092a17763b703039b2e4528234e30 (diff)
parent62b66f2593293aea5b42185fd2a2eb9d6e4d0cf2 (diff)
* lp:~mvo/apt/config-clear:
- support Configuration.Clear() for a clear of the entire configuration
Diffstat (limited to 'test')
-rw-r--r--test/libapt/configuration_test.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/libapt/configuration_test.cc b/test/libapt/configuration_test.cc
index 87d5699ef..2c974ee0a 100644
--- a/test/libapt/configuration_test.cc
+++ b/test/libapt/configuration_test.cc
@@ -98,6 +98,10 @@ int main(int argc,const char *argv[]) {
equals(Cnf.FindDir("Dir::State"), "/rootdir/dev/null");
equals(Cnf.FindDir("Dir::State::lists"), "/rootdir/dev/null");
+ Cnf.Set("Moo::Bar", "1");
+ Cnf.Clear();
+ equals(Cnf.Find("Moo::Bar"), "");
+
//FIXME: Test for configuration file parsing;
// currently only integration/ tests test them implicitly