/mandos/release

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

« back to all changes in this revision

Viewing changes to mandos-ctl

  • Committer: Teddy Hogeborn
  • Date: 2019-03-06 19:08:59 UTC
  • mto: (237.7.594 trunk)
  • mto: This revision was merged to the branch mainline in revision 382.
  • Revision ID: teddy@recompile.se-20190306190859-wqqjlxjc69p3qqyo
mandos-ctl: Refactor test

* mandos-ctl (TestOptions.assert_command_from_args): Add a client name
                                                     to all options
                                                     which need it.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1136
1136
        self.assert_command_from_args(["--verbose"], PrintTableCmd,
1137
1137
                                      verbose=True)
1138
1138
    def test_enable(self):
1139
 
        self.assert_command_from_args(["--enable"], EnableCmd)
 
1139
        self.assert_command_from_args(["--enable", "foo"], EnableCmd)
1140
1140
    def test_disable(self):
1141
 
        self.assert_command_from_args(["--disable"], DisableCmd)
 
1141
        self.assert_command_from_args(["--disable", "foo"],
 
1142
                                      DisableCmd)
1142
1143
 
1143
1144
 
1144
1145