Mercurial > code > home > repos > light9
view test/test_patch.py @ 908:0a47ec94fc63
move all point editing into Curve. fix manip to never try to make points have the same X. add check in Curve that points never have the same X or crossing X
Ignore-this: 75ad005fd9d35a61ecef82bf8ddae3f4
author | Drew Perttula <drewp@bigasterisk.com> |
---|---|
date | Mon, 10 Jun 2013 09:28:11 +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']