'Test __contains___ with various values.'

@pytest.mark.parametrize('valid_values,    contained,    not_contained', [(['foo', 'bar'], ['foo'], ['baz']), ([('foo', 'foo    desc'), ('bar', 'bar    desc')], ['foo', 'bar'], ['baz']), ([('foo', 'foo    desc'), 'bar'], ['foo', 'bar'], ['baz'])])
def test_contains(self, klass, valid_values, contained, not_contained):

    vv = klass(*valid_values)
    for elem in contained:
        assert (elem in vv)
    for elem in not_contained:
        assert (elem not in vv)
