Merge pull request #379 from nelsonjchen/patch-1

Update tests.rst
This commit is contained in:
Ian Cordasco
2014-03-15 09:08:12 -05:00
+1 -1
View File
@@ -50,7 +50,7 @@ Some general rules of testing:
slightly different than that of running code, where short names are often slightly different than that of running code, where short names are often
preferred. The reason is testing functions are never called explicitly. preferred. The reason is testing functions are never called explicitly.
``square()`` or even ``sqr()`` is ok in running code, but in testing code you ``square()`` or even ``sqr()`` is ok in running code, but in testing code you
would has names such as ``test_square_of_number_2()``, would have names such as ``test_square_of_number_2()``,
``test_square_negative_number()``. These function names are displayed when a ``test_square_negative_number()``. These function names are displayed when a
test fail, and should be as descriptive as possible. test fail, and should be as descriptive as possible.