Test for Exception
def test_sqrt_of_negative( self ):
"""sqrt of a negative number should throw
ValueError.
"""
self.
assert????
( math.sqrt(-1) )
What if your code should throw an exception?
Get your own AI website up and running! Start your new business, personal, or research website with our ready to use website scripts and templates.