def METHOD_NAME(fresh_aiida_env, potcar_family):
    """Test filtering families by elements & symbols."""
    result = run_cmd('listfamilies', ['--element', 'In', '--element', 'As'])
    assert potcar_family in result.output
    result = run_cmd('listfamilies', ['--element', 'In', '--element', 'U235'])
    assert potcar_family not in result.output
    result = run_cmd('listfamilies', ['--symbol', 'In_d'])
    assert potcar_family in result.output
    result = run_cmd('listfamilies', ['--symbol', 'In_d', '--symbol', 'In_s'])
    assert potcar_family not in result.output
    result = run_cmd('listfamilies', ['--symbol', 'In_d', '--element', 'As'])
    assert potcar_family in result.output
    result = run_cmd('listfamilies', ['--symbol', 'In_d', '--element', 'U235'])
    assert potcar_family not in result.output