def test_find_public_symbols(): """ find_public finds all non underscored symbols """ mod = _types.ModuleType('lala') mod.a = 1 mod._b = 2 assert_equals(_util.find_public(vars(mod)), ['a'])
See the License for the specific language governing permissions and limitations under the License. =========================================== Wolfe - A Reliable Task Management System =========================================== Wolfe - A Reliable Job Management System. """ if __doc__: # pragma: no cover # pylint: disable = redefined-builtin __doc__ = __doc__.encode('ascii').decode('unicode_escape') __author__ = r"Andr\xe9 Malo".encode('ascii').decode('unicode_escape') __docformat__ = "restructuredtext en" __license__ = "Apache License, Version 2.0" __version__ = ('0.1.0', False, 1) # pylint: disable = redefined-builtin, wildcard-import from wolfe import _util from wolfe import _version from wolfe._exceptions import * # noqa from wolfe._execution import Executor # noqa from wolfe._lock import Lock # noqa from wolfe._todo import Todo, TodoDescription # noqa from wolfe._main import Main # noqa #: Version of the wolfe package version = _version.Version(*__version__) __all__ = _util.find_public(globals())
def test_find_public_all(): """ find_public passes __all__ """ mod = _types.ModuleType('lala') mod.__all__ = ['_b', 'c'] assert_equals(_util.find_public(vars(mod)), ['_b', 'c'])