'Display a list of repositories that contain tools, have not yet been reviewed, and have invalid functional tests.  Tests are defined as
invalid if they are missing from the tool config or if defined test data is not included in the repository.'

@web.expose
@web.require_login('manage    repositories    with    invalid    tests')
def manage_repositories_with_invalid_tests(self, trans, **kwd):

    if ('operation' in kwd):
        operation = kwd['operation'].lower()
        if (operation == 'inspect    repository    revisions'):
            return trans.response.send_redirect(web.url_for(controller='repository_review', action='create_review', **kwd))
        if (operation == 'view_or_manage_repository'):
            return trans.response.send_redirect(web.url_for(controller='repository_review', action='view_or_manage_repository', **kwd))
    message = 'These    repositories    contain    tools    with    missing    functional    tests    or    test    data.        '
    kwd['message'] = message
    kwd['status'] = 'warning'
    return self.repositories_with_no_tool_tests_grid(trans, **kwd)
