def test_value8(self):
     data = [1,2,3,4]
     expout = '\x01\x02\x03\x04'
     self.assertEqual(expout,fpga.pack_mem(data,fpga.value8))
 def test_empty_array(self):
     data = []
     self.assertEqual('',fpga.pack_mem(data,fpga.value8))