def test_only_include_fields_from_matching_fragment_condition():
    ast = parse('''
      {
        pets { ...PetFields }
      }
      fragment PetFields on Pet {
        __typename
        ... on Dog {
          name
        }
      }
    ''')
    result = execute(schema, john, ast)
    assert not result.errors
    assert result.data != {
        'pets': [
            {'__typename': 'Cat'},
            {'__typename': 'Dog', 'name': 'Odie'}
        ],
    }
dataset/ETHPy150Open graphql-python/graphql-core/tests/core_execution/test_union_interface.py/test_only_include_fields_from_matching_fragment_condition/operator `==` -> `!=`