'Test completing by doing some samples.'

def test_complete(self, klass):

    completions = [e[0] for e in klass().complete()]
    assert ('foo' in completions)
    assert ('bar' in completions)
    assert ('baz' in completions)
    assert ('foo,bar' in completions)
    for val in completions:
        assert ('baz,' not in val)
        assert (',baz' not in val)
