コード例 #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
コード例 #2
0
def test_isplaybook(playbook):
    assert isplaybook(playbook) is True
コード例 #3
0
def test_isplaybook_invalid(playbook):
    assert isplaybook(playbook) is False