# HG changeset patch # Parent 770d45d22a40aba27c151b84eb9eab359ad9411b [mq]: issue11298_py2.7 diff -r 770d45d22a40 Doc/library/unittest.rst --- a/Doc/library/unittest.rst Mon Mar 07 22:50:37 2011 -0600 +++ b/Doc/library/unittest.rst Tue Mar 08 09:44:59 2011 +0000 @@ -257,9 +257,11 @@ .. versionadded:: 2.7 -Unittest supports simple test discovery. For a project's tests to be -compatible with test discovery they must all be importable from the top level -directory of the project (in other words, they must all be in Python packages). +Unittest supports simple test discovery. In order to be compatible with test +discovery, all of the test files must be :ref:`modules ` or +:ref:`packages ` importable from the top-level directory of +the project (this means that their filenames must be valid +:ref:`identifiers `). Test discovery is implemented in :meth:`TestLoader.discover`, but can also be used from the command line. The basic command-line usage is::