def test_get_led1(sniffer, nodeid): print "Get state led 1" value = bugOne.getValue(nodeid, 0, 1, sniffer) print "state is %s" % value if value == 1: return True return False
def test_get_const(sniffer, nodeid): print "Get value device 1" value = bugOne.getValue(nodeid, 0, 0, sniffer) print "value is %s" % value if value == 42: return True return False