Skip to content
Snippets Groups Projects
Commit e2afddf0 authored by MoritzThomasHuebner's avatar MoritzThomasHuebner
Browse files

Wrote repr test for Analytical1DLikelihood

parent 79b16f9f
No related branches found
No related tags found
1 merge request!170Resolve "Add more __repr__ methods"
......@@ -129,6 +129,10 @@ class TestAnalytical1DLikelihood(unittest.TestCase):
parameter2=self.parameter2_value)
self.assertDictEqual(expected_model_parameters, self.analytical_1d_likelihood.model_parameters)
def test_repr(self):
expected = 'Analytical1DLikelihood(x={}, y={}, func={})'.format(self.x, self.y, self.func.__name__)
self.assertEqual(expected, repr(self.analytical_1d_likelihood))
class TestGaussianLikelihood(unittest.TestCase):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment