Exemplo n.º 1
0
def test_isplaybook():

    for obj in ('foo', {}, {'foo': 'bar'}, True, False, None):
        assert isplaybook(obj) is False, obj

    for obj in (['foo'], []):
        assert isplaybook(obj) is True, obj
Exemplo n.º 2
0
def test_isplaybook(playbook):
    assert isplaybook(playbook) is True
Exemplo n.º 3
0
def test_isplaybook_invalid(playbook):
    assert isplaybook(playbook) is False