Fix the nose failure by fixing the bug, not nopping the test
authorJon Speicher <jon.speicher@gmail.com>
Sat, 27 Jul 2013 19:29:27 +0000 (15:29 -0400)
committerW. Trevor King <wking@tremily.us>
Sat, 9 Nov 2013 18:27:51 +0000 (10:27 -0800)
python/sw_engineering/SoftwareEngineering.ipynb

index a50a53e431dcce586f61d550be17211bb17e19b8..ae0c7e66fee5c928abe679c4c2b7bc0696757fc5 100644 (file)
      "metadata": {},
      "source": [
       "***\n",
-      "**Aside: Clearing out our failure example**\n",
+      "**Aside: Fixing our failure example**\n",
       "\n",
-      "Let's get that failed test out of the way by *redefining* the function to do nothing. In Python, this uses the `pass` keyword (but note that `pass` doesn't actually mean \"pass the test\")."
+      "Let's get that failed test out of the way by *redefining* the function to do fix the bug."
      ]
     },
     {
      "cell_type": "code",
      "collapsed": false,
      "input": [
-      "def test_add_two_plus_two_equals_four():\n",
-      "    pass"
+      "def add_two_plus_two():\n",
+      "    return 2 + 2"
      ],
      "language": "python",
      "metadata": {},
      "outputs": [],
-     "prompt_number": 16
+     "prompt_number": 17
     },
     {
      "cell_type": "code",