=== modified file 'mandos-ctl' --- mandos-ctl 2019-03-17 11:10:21 +0000 +++ mandos-ctl 2019-03-17 11:19:58 +0000 @@ -1458,13 +1458,13 @@ class TestBaseCommands(TestCommand): - def test_is_enabled(self): + def test_IsEnabled(self): self.assertTrue(all(command.IsEnabled().is_enabled(client, properties) for client, properties in self.clients.items())) - def test_is_enabled_run_exits_successfully(self): + def test_IsEnabled_run_exits_successfully(self): with self.assertRaises(SystemExit) as e: command.IsEnabled().run(self.one_client) if e.exception.code is not None: @@ -1472,7 +1472,7 @@ else: self.assertIsNone(e.exception.code) - def test_is_enabled_run_exits_with_failure(self): + def test_IsEnabled_run_exits_with_failure(self): self.client.attributes["Enabled"] = dbus.Boolean(False) with self.assertRaises(SystemExit) as e: command.IsEnabled().run(self.one_client) @@ -1481,21 +1481,21 @@ else: self.assertIsNotNone(e.exception.code) - def test_approve(self): + def test_Approve(self): command.Approve().run(self.clients, self.bus) for clientpath in self.clients: client = self.bus.get_object(dbus_busname, clientpath) self.assertIn(("Approve", (True, client_dbus_interface)), client.calls) - def test_deny(self): + def test_Deny(self): command.Deny().run(self.clients, self.bus) for clientpath in self.clients: client = self.bus.get_object(dbus_busname, clientpath) self.assertIn(("Approve", (False, client_dbus_interface)), client.calls) - def test_remove(self): + def test_Remove(self): class MockMandos(object): def __init__(self): self.calls = []