human
What is a the Python program you requested given the following:
I am working on the file "Fall2018/09_UnitTests/unit-tests.ipynb".
The first task is:
unittest provides help with testing exceptions.
Can you write Python program for it?
assistant
#Here is the Python program you requested.

import unittest

# Define a class in which the tests will run
class TestEntropy(unittest.TestCase):
        
    def test_invalid_probability(self):
        with self.assertRaises(ValueError):
            entropy([0.1, 0.5])
        
suite = unittest.TestLoader().loadTestsFromTestCase(TestEntropy)
_ = unittest.TextTestRunner().run(suite)