summaryrefslogtreecommitdiff
path: root/utilities/test_blinkenrocket.py
diff options
context:
space:
mode:
authorSebastian Muszytowski <sebastian@muszytowski.net>2016-02-17 18:29:03 +0100
committerSebastian Muszytowski <sebastian@muszytowski.net>2016-02-17 18:29:03 +0100
commit319bb58fa93421283a4c0b9cbf8f474f11a1530e (patch)
tree9306f15812009514c734af6d6fa793fe1b9a5b8b /utilities/test_blinkenrocket.py
parent87a87f5843e71aa9057a091c1790eb2507eac61c (diff)
add missing header information with length+type info
Diffstat (limited to 'utilities/test_blinkenrocket.py')
-rw-r--r--utilities/test_blinkenrocket.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/utilities/test_blinkenrocket.py b/utilities/test_blinkenrocket.py
index 11d8d91..b2da0fd 100644
--- a/utilities/test_blinkenrocket.py
+++ b/utilities/test_blinkenrocket.py
@@ -105,11 +105,12 @@ class TestBlinkenrocket(unittest.TestCase):
def test_addFrameText(self):
text = textFrame("MUZY",speed=7,delay=8,direction=1)
+ self.assertEquals(text.getFrameHeader(),[chr(0x01 << 4), chr(4)])
self.assertEquals(text.getHeader(),[chr(7 << 4 | 8),chr(1 << 4 | 0)])
- self.assertEquals(text.getRepresentation(),[chr(7 << 4 | 8),chr(1 << 4 | 0),'M','U','Z','Y'])
+ self.assertEquals(text.getRepresentation(),[chr(0x01 << 4), chr(4),chr(7 << 4 | 8),chr(1 << 4 | 0),'M','U','Z','Y'])
br = blinkenrocket()
br.addFrame(text)
- expect = [chr(0x99),chr(0x99),chr(0xA9),chr(0xA9),chr(7 << 4 | 8),chr(1 << 4 | 0),'M','U','Z','Y']
+ expect = [chr(0x99),chr(0x99),chr(0xA9),chr(0xA9),chr(0x01 << 4), chr(4),chr(7 << 4 | 8),chr(1 << 4 | 0),'M','U','Z','Y']
self.assertEquals(br.getMessage(),expect)
if __name__ == '__main__':