def METHOD_NAME(app, cli_run, g_users, g_repositories, g_remoteaccounts):
    """Test 'list' CLI."""
    # List repos 'owned' by the user
    ret = cli_run('list u1@foo.bar -E')
    assert ret.exit_code == 0
    assert ret.output.startswith('User has 2 enabled repositories.')
    assert 'foo/bar:8000' in ret.output
    assert 'bacon/eggs:8002' in ret.output
    assert 'other/repo:8003' not in ret.output