Mercurial > code > home > repos > light9
changeset 2171:df7615c1e0b9
output_test looked obsolete
author | drewp@bigasterisk.com |
---|---|
date | Fri, 19 May 2023 12:11:38 -0700 |
parents | 066f05ad7900 |
children | 0d91d01411eb |
files | light9/collector/output_test.py |
diffstat | 1 files changed, 1 insertions(+), 42 deletions(-) [+] |
line wrap: on
line diff
--- a/light9/collector/output_test.py Fri May 19 12:11:26 2023 -0700 +++ b/light9/collector/output_test.py Fri May 19 12:11:38 2023 -0700 @@ -1,48 +1,7 @@ import unittest from light9.namespaces import L9 -from light9.collector.output import setListElem, DmxOutput +# from light9.collector.output import DmxOutput -class TestSetListElem(unittest.TestCase): - - def testSetExisting(self): - x = [0, 1] - setListElem(x, 0, 9) - self.assertEqual([9, 1], x) - - def testSetNext(self): - x = [0, 1] - setListElem(x, 2, 9) - self.assertEqual([0, 1, 9], x) - - def testSetBeyond(self): - x = [0, 1] - setListElem(x, 3, 9) - self.assertEqual([0, 1, 0, 9], x) - - def testArbitraryFill(self): - x = [0, 1] - setListElem(x, 5, 9, fill=8) - self.assertEqual([0, 1, 8, 8, 8, 9], x) - - def testSetZero(self): - x = [0, 1] - setListElem(x, 5, 0) - self.assertEqual([0, 1, 0, 0, 0, 0], x) - - def testCombineMax(self): - x = [0, 1] - setListElem(x, 1, 0, combine=max) - self.assertEqual([0, 1], x) - - def testCombineHasNoEffectOnNewElems(self): - x = [0, 1] - setListElem(x, 2, 1, combine=max) - self.assertEqual([0, 1, 1], x) -class TestDmxOutput(unittest.TestCase): - - def testFlushIsNoop(self): - out = DmxOutput(L9['output/udmx/'], 3) - out.flush()