"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",