comparison test/test_patch.py @ 351:a6662d61ebcd

SC, KC, CC now run and seem to load and save ok. CC does not have any rdf for its data files
author Drew Perttula <drewp@bigasterisk.com>
date Sun, 10 Jun 2007 08:09:08 +0000
parents
children
comparison
equal deleted inserted replaced
350:c7478a778992 351:a6662d61ebcd
1 import run_local
2 from light9 import dmxclient, Patch, Submaster
3 from light9.namespaces import L9
4
5 def test():
6 assert Patch.get_channel_name(1) == "frontLeft"
7 assert Patch.get_channel_name("1") == "frontLeft"
8 assert Patch.get_channel_name("frontLeft") == "frontLeft"
9
10 assert Patch.get_dmx_channel(1) == 1
11 assert Patch.get_dmx_channel("1") == 1
12 assert Patch.get_dmx_channel("frontLeft") == 1
13
14 assert Patch.get_channel_name("b1") == "frontLeft"
15 assert Patch.get_dmx_channel("b1") == 1
16 assert Patch.resolve_name("b1") == "frontLeft"
17 assert Patch.resolve_name("frontLeft") == "frontLeft"
18
19 assert Patch.get_channel_uri("frontLeft") == L9['theater/skyline/channel/frontLeft']
20