diff --git a/unit-testing.html b/unit-testing.html index 6ceaa24..a883c38 100755 --- a/unit-testing.html +++ b/unit-testing.html @@ -248,7 +248,8 @@ OK

What would that test look like?

[download romantest2.py] -

class ToRomanBadInput(unittest.TestCase):                                 
+
import unittest, roman2
+class ToRomanBadInput(unittest.TestCase):                                 
     def test_too_large(self):                                             
         '''to_roman should fail with large input'''
         self.assertRaises(roman2.OutOfRangeError, roman2.to_roman, 4000)