def METHOD_NAME(func, expected_group_basenames):
    for group, basename in ALL_DRIVERS:
        driver_import("resource", group, basename)
    for group, basename in expected_group_basenames:
        assert "%s.%s" % (group, basename) in rtypes_with_callable(func)