'Tests that the case reported in
https://github.com/LLNL/spack/pull/2386#issuecomment-282147639
is handled correctly.'

def test_satisfies_single_valued_variant(self):

    a = Spec('a    foobar=bar')
    a.concretize()
    assert a.satisfies('foobar=bar')
    assert ('foobar=bar' in a)
    assert ('foobar=baz' not in a)
    assert ('foobar=fee' not in a)
    assert ('foo=bar' in a)
    assert ('^b' in a)
