Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 317fc05 commit 12ec7c2Copy full SHA for 12ec7c2
unit-testing.html
@@ -248,7 +248,8 @@ <h2 id=romantest2>“Halt And Catch Fire”</h2>
248
</blockquote>
249
<p>What would that test look like?
250
<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>①</span></a>
+<pre class=pp><code>import unittest, roman2
252
+<a>class ToRomanBadInput(unittest.TestCase): <span class=u>①</span></a>
253
<a> def test_too_large(self): <span class=u>②</span></a>
254
'''to_roman should fail with large input'''
255
<a> self.assertRaises(roman2.OutOfRangeError, roman2.to_roman, 4000) <span class=u>③</span></a></code></pre>
0 commit comments