Mercurial > code > home > repos > light9
view test/test_patch.py @ 836:dc35587fbbb6
hack up the window-save-position code to try to ignore automatic size changes at start
Ignore-this: c563fa4e2f0a42444afd5ad223e84cb9
author | Drew Perttula <drewp@bigasterisk.com> |
---|---|
date | Wed, 05 Jun 2013 00:11:22 +0000 |
parents | a6662d61ebcd |
children |
line wrap: on
line source
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']