def test_discover_modules_with_filter(): ret = set( discover_modules( Cheetah.testing, module_match_func=module_predicate, )) assert ret == {Cheetah.testing.partial_template_test_case}
def test_discover_modules_with_filter(): predicate = lambda module: 'all' not in module.__name__ ret = set(discover_modules(Cheetah.testing, module_match_func=predicate)) assert ret == set((Cheetah.testing.partial_template_test_case,))
def test_discover_modules(): ret = set(discover_modules(Cheetah.testing)) assert ret == set(( Cheetah.testing.all_partials_tested, Cheetah.testing.partial_template_test_case, ))
def test_discover_modules_with_filter(): ret = set(discover_modules( Cheetah.testing, module_match_func=module_predicate, )) assert ret == {Cheetah.testing.partial_template_test_case}