def test_f_mutation_with_not(self):
        f1 = F(fielda='tag')
        f2 = ~f1

        # Change f2 to see if it changes f1.
        f2.filters[0]['not']['filter'] = [('fielda', 'boat')]

        # Should only contain f1 filters.
        eq_(f1.filters, [('fielda', 'tag')])

        # Should only contain f2 tweaked filter.
        eq_(f2.filters, [{'not': {'filter': [('fielda', 'boat')]}}])
Returns:
dataset/ETHPy150Open mozilla/elasticutils/elasticutils/tests/test_query.py/FilterTest.test_f_mutation_with_not--crossover with--dataset/ETHPy150Open meraki-analytics/cassiopeia/cassiopeia/type/core/status.py/ShardStatus.services