def filter_by_latest_downloadable_changeset_revision_that_has_missing_tool_test_components(trans, repository):
 repository_metadata = get_latest_downloadable_repository_metadata_if_it_includes_tools(trans, repository)
 if ((repository_metadata is not None) and repository_metadata.missing_test_components):
  return repository_metadata.changeset_revision
 return None

def filter_by_latest_downloadable_changeset_revision_that_has_missing_tool_test_components ( trans , repository ) : repository_metadata = get_latest_downloadable_repository_metadata_if_it_includes_tools ( trans , repository ) if ( ( repository_metadata is not None ) and repository_metadata . missing_test_components ) : return repository_metadata . changeset_revision return None
inspect the latest downloadable changeset revision for the received repository to see if it includes tools that are either missing functional tests or functional test data .