def test_function_string_has_expected_form_with_defaults_given(self): test_profiles = GaussianMassProfile(10, 16) param_prefix = "f1." param_vals = {"f1.Width": 11.0, "f1.Intensity": 4.5} expected = "name=GaussianComptonProfile,Mass=16.000000,Width=11.000000,Intensity=4.500000;" self.assertEqual(expected, test_profiles.create_fit_function_str(param_vals, param_prefix))
def test_function_string_has_expected_form_with_no_defaults(self): test_profiles = GaussianMassProfile(10, 16) expected = "name=GaussianComptonProfile,Mass=16.000000,Width=10.000000;" self.assertEqual(expected, test_profiles.create_fit_function_str())