Files @ f61a7b03765e
Branch filter:

Location: light9/test/test_patch.py

drewp@bigasterisk.com
vidref: ignore take dirs whose names aren't just times, allowing for .hide, etc
Ignore-this: 51badc93bc8c5cc4509bdd98c361e92c
import run_local
from light9 import dmxclient, Patch, Submaster
from light9.namespaces import L9

def test():
    assert Patch.get_channel_name(1) == "frontLeft"
    assert Patch.get_channel_name("1") == "frontLeft"
    assert Patch.get_channel_name("frontLeft") == "frontLeft"
    
    assert Patch.get_dmx_channel(1) == 1
    assert Patch.get_dmx_channel("1") == 1
    assert Patch.get_dmx_channel("frontLeft") == 1
    
    assert Patch.get_channel_name("b1") == "frontLeft"
    assert Patch.get_dmx_channel("b1") == 1
    assert Patch.resolve_name("b1") == "frontLeft"
    assert Patch.resolve_name("frontLeft") == "frontLeft"

    assert Patch.get_channel_uri("frontLeft") == L9['theater/skyline/channel/frontLeft']