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?
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) ③