Skip to content

Commit

Permalink
add tests
Browse files Browse the repository at this point in the history
  • Loading branch information
davidbailey committed Dec 14, 2019
1 parent ca2f0e0 commit b4ac793
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions tests/test_likelihood.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,21 +5,22 @@

from rail import Likelihood

LAM = 0.5

class TestLikelihood(unittest.TestCase):
"""
Class to test a likelihood
"""

def setUp(self):
self.likelihood = Likelihood(0.5)
self.likelihood = Likelihood(LAM)

def test_likelihood(self):
"""
Test a likelihood
"""
self.assertEqual(self.likelihood["name"], "0.5")
self.assertEqual(self.likelihood["lam"], 0.5)
self.assertEqual(self.likelihood["name"], str(LAM))
self.assertEqual(self.likelihood["lam"], LAM)


if __name__ == "__main__":
Expand Down

0 comments on commit b4ac793

Please sign in to comment.