def METHOD_NAME(self):
    '''
    Tests the function to get Mmax
    Values come from WC1994 (tested in openquake.hazardlib) - only
    functionality is tested for here!
    '''
    # Case 1 MMmax and uncertainty specified in config
    self.config['Maximum_Magnitude'] = 8.0
    self.config['Maximum_Magnitude_Uncertainty'] = 0.2
    self.model = Characteristic()
    self.model.setUp(self.config)
    self.model.get_mmax(self.config, self.msr, 0., 8500.)
    self.assertAlmostEqual(self.model.mmax, 8.0)
    self.assertAlmostEqual(self.model.mmax_sigma, 0.2)
    # Case 2: Mmax and uncertainty not specified in config
    self.config['Maximum_Magnitude'] = None
    self.config['Maximum_Magnitude_Uncertainty'] = None
    self.model = Characteristic()
    self.model.setUp(self.config)
    self.model.get_mmax(self.config, self.msr, 0., 8500.)
    self.assertAlmostEqual(self.model.mmax, 7.9880073)
    self.assertAlmostEqual(self.model.mmax_sigma, 0.23)