def test_satisfies_stars():
    assert satisfies(["scope:*", "other:*"], ["scope:xyz"])
    assert satisfies(["scope:*", "other:*"], ["scope:"])
    assert not satisfies(["scope:*", "other:*"], ["scope"])
def test_satisfies_simple():
    assert satisfies(["scope1", "scope2"], ["scope1"])
    assert not satisfies(["scope1"], ["scope1", "scope2"])