From 12ec7c2c0a889e9e38a19de47d53216dbb3dc246 Mon Sep 17 00:00:00 2001 From: Mark Pilgrim Date: Thu, 16 Sep 2010 14:45:06 -0400 Subject: [PATCH] add import statement for clarity --- unit-testing.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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)