/mandos/trunk

To get this branch, use:
bzr branch http://bzr.recompile.se/loggerhead/mandos/trunk

« back to all changes in this revision

Viewing changes to mandos-ctl

  • Committer: Teddy Hogeborn
  • Date: 2019-03-06 18:33:51 UTC
  • Revision ID: teddy@recompile.se-20190306183351-ta7n78xtsfige9ob
mandos-ctl: Add test for the --disable option

* mandos-ctl (TestOptions.test_disable): New.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1140
1140
        command = commands[0]
1141
1141
        self.assertIsInstance(command, EnableCmd)
1142
1142
        self.assertEqual(self.options.client, ["foo"])
 
1143
    def test_disable(self):
 
1144
        commands = self.commands_from_args(["--disable", "foo"])
 
1145
        self.assertEqual(len(commands), 1)
 
1146
        command = commands[0]
 
1147
        self.assertIsInstance(command, DisableCmd)
 
1148
        self.assertEqual(self.options.client, ["foo"])
1143
1149
 
1144
1150
 
1145
1151