Skip to content

Commit

Permalink
add import statement for clarity
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark Pilgrim committed Sep 16, 2010
1 parent 317fc05 commit 12ec7c2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion unit-testing.html
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,8 @@ <h2 id=romantest2>&#8220;Halt And Catch Fire&#8221;</h2>
</blockquote>
<p>What would that test look like?
<p class=d>[<a href=examples/romantest2.py>download <code>romantest2.py</code></a>]
<pre class=pp><code><a>class ToRomanBadInput(unittest.TestCase): <span class=u>&#x2460;</span></a>
<pre class=pp><code>import unittest, roman2
<a>class ToRomanBadInput(unittest.TestCase): <span class=u>&#x2460;</span></a>
<a> def test_too_large(self): <span class=u>&#x2461;</span></a>
'''to_roman should fail with large input'''
<a> self.assertRaises(roman2.OutOfRangeError, roman2.to_roman, 4000) <span class=u>&#x2462;</span></a></code></pre>
Expand Down

0 comments on commit 12ec7c2

Please sign in to comment.