Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 12ec7c2

Browse files
author
Mark Pilgrim
committed
add import statement for clarity
1 parent 317fc05 commit 12ec7c2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

unit-testing.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,8 @@ <h2 id=romantest2>&#8220;Halt And Catch Fire&#8221;</h2>
248248
</blockquote>
249249
<p>What would that test look like?
250250
<p class=d>[<a href=examples/romantest2.py>download <code>romantest2.py</code></a>]
251-
<pre class=pp><code><a>class ToRomanBadInput(unittest.TestCase): <span class=u>&#x2460;</span></a>
251+
<pre class=pp><code>import unittest, roman2
252+
<a>class ToRomanBadInput(unittest.TestCase): <span class=u>&#x2460;</span></a>
252253
<a> def test_too_large(self): <span class=u>&#x2461;</span></a>
253254
'''to_roman should fail with large input'''
254255
<a> self.assertRaises(roman2.OutOfRangeError, roman2.to_roman, 4000) <span class=u>&#x2462;</span></a></code></pre>

0 commit comments

Comments
 (0)