=== modified file 'mandos-ctl' --- mandos-ctl 2019-03-04 20:39:48 +0000 +++ mandos-ctl 2019-03-04 20:50:40 +0000 @@ -990,6 +990,23 @@ self.assertIn(("Approve", (False, client_interface)), client.calls) +class TestEnableCmd(TestCmd): + def test_enable(self): + for client in self.clients: + client.attributes["Enabled"] = False + + EnableCmd().run(None, self.clients) + + for client in self.clients: + self.assertTrue(client.attributes["Enabled"]) + +class TestDisableCmd(TestCmd): + def test_disable(self): + DisableCmd().run(None, self.clients) + + for client in self.clients: + self.assertFalse(client.attributes["Enabled"]) + def should_only_run_tests():