mandos-ctl: Add more tests, including tests for all commands
* mandos-ctl (Test_string_to_delta.test_handles_basic_rfc3339): Add a few more test cases. (TestCmd.setUp.MockClient.Set, TestCmd.setUp.MockClient.Get): Don't append to self.calls, since nobody should use it to check for Set() or Get() calls; instead, the return value of Get() should be inspected, and the MockClient.attributes dict should be inspected after (implicitly) calling Set(). (Unique): New; stand-in for unittest.mock.sentinel. (TestPropertyCmd): New; abstract class testing PropertyCmd classes. (TestBumpTimeoutCmd, TestStartCheckerCmd, TestStopCheckerCmd, TestApproveByDefaultCmd, TestDenyByDefaultCmd): New. (TestValueArgumentPropertyCmd): New; abstract class for testing those PropertyCmd classes which also inherit from ValueArgumentMixIn. (TestSetCheckerCmd, TestSetHostCmd, TestSetSecretCmd, TestSetTimeoutCmd, TestSetExtendedTimeoutCmd, TestSetIntervalCmd, TestSetApprovalDelayCmd, TestSetApprovalDurationCmd): New.
|| dpkg --compare-versions "$2" eq "1.8.0-1~bpo9+1"; then
61
if grep --quiet --regexp='^[[:space:]]*key_id[[:space:]]*=[[:space:]]*[Ee]3[Bb]0[Cc]44298[Ff][Cc]1[Cc]149[Aa][Ff][Bb][Ff]4[Cc]8996[Ff][Bb]92427[Aa][Ee]41[Ee]4649[Bb]934[Cc][Aa]495991[Bb]7852[Bb]855[[:space:]]*$' /etc/mandos/clients.conf; then