def prefixed_by(prefix):
def prefixed_by_(name, value=None):<EOL><INDENT>return name.startswith(prefix)<EOL><DEDENT>prefixed_by_.__name__ += prefix<EOL>return prefixed_by_<EOL>
Make a callable returning True for names starting with the given prefix.

The returned callable takes two arguments, the attribute or name of
the object, and possibly its corresponding value (which is ignored),
as suitable for use with :meth:`ObjectLocator.is_test_module` and
:meth:`ObjectLocator.is_test_method`\ .