def test_writeUpdatesPixels(self, resetMachine, tenPixelStrand):
    tenPixelStrand[0] = green
    tenPixelStrand[1] = red
    tenPixelStrand.write()
    assert (len(tenPixelStrand.writesForTesting) == 1)
    writtenStrand = tenPixelStrand.writesForTesting[0]
    assert (writtenStrand[0] == green)
    assert (writtenStrand[1] == red)
    assert (writtenStrand.timeFromFirstWrite == 0)
def test_writeUpdatesPixels(self, resetMachine, tenPixelStrand):
    tenPixelStrand[0] = green
    tenPixelStrand[1] = red
    tenPixelStrand.write()
    assert (len(tenPixelStrand.writesForTesting) == 1)
    writtenStrand = tenPixelStrand.writesForTesting[0]
    assert (writtenStrand[0] == green)
    assert (writtenStrand[1] == red)
    assert (writtenStrand.timeFromFirstWrite == 0)