コード例 #1
0
def test_satisfies_stars():
    assert satisfies(["scope:*", "other:*"], ["scope:xyz"])
    assert satisfies(["scope:*", "other:*"], ["scope:"])
    assert not satisfies(["scope:*", "other:*"], ["scope"])
コード例 #2
0
def test_satisfies_simple():
    assert satisfies(["scope1", "scope2"], ["scope1"])
    assert not satisfies(["scope1"], ["scope1", "scope2"])