def METHOD_NAME(self):
    # Tests the parameter and hyper-parameter interfaces for this sampler.
    n = 3
    x0 = [self.real_parameters] * n
    mcmc = pints.EmceeHammerMCMC(n, x0)
    self.assertEqual(mcmc.n_hyper_parameters(), 1)
    scale = mcmc.scale() + 0.1
    mcmc.set_hyper_parameters([scale])
    self.assertEqual(mcmc.scale(), scale)
    self.assertRaisesRegex(
        ValueError, 'exceed', mcmc.set_hyper_parameters, [1])