def test_salt_master_running_exception(self, *args): with self.assertRaises(NoSaltMasterProcess) as ctx: check_salt_master() self.assertEqual(str(ctx.exception), "No salt-master process is running")
def test_salt_master_ok(self, *args): check_salt_master()
def test_salt_master_installed(self, *args): with self.assertRaises(SaltMasterNotInstalled) as ctx: check_salt_master() self.assertEqual(str(ctx.exception), "salt-master is not installed")