mirror of
https://github.com/unshackle-dl/unshackle.git
synced 2026-12-04 06:55:09 +00:00
feat(drm): license a plugin DRM at the licence step and over --remote with the client's plugin device
This commit is contained in:
@@ -205,8 +205,10 @@ def test_a_served_service_gets_a_device_by_system_only_where_the_server_licenses
|
||||
else:
|
||||
launch_session("EXAMPLE", "t", {}, licensor=licensor)
|
||||
cdm_for = seen["ctx"].obj.cdm_for
|
||||
before = list(loads)
|
||||
|
||||
assert (cdm_for is not None) == served
|
||||
if cdm_for:
|
||||
cdm_for("example")
|
||||
assert loads[-1] == ("EXAMPLE", None, "example")
|
||||
gives = cdm_for("example") if cdm_for else None
|
||||
|
||||
assert (loads[len(before) :] == [("EXAMPLE", None, "example")]) == served
|
||||
if not served:
|
||||
assert gives is None
|
||||
|
||||
Reference in New Issue
Block a user