def test_read_long_not_enough_bits(self):
     with self.assertRaises(EOFError):
         byte_stream = pack('<I',10)
         byte_stream = bytearray(byte_stream)
         reader = LittleEndianByteArrayByteReader(byte_stream)
         value = reader.read_long()
 def test_read_long(self):
     byte_stream = pack('<Q',0xFF1200A3)
     byte_stream = bytearray(byte_stream)
     reader = LittleEndianByteArrayByteReader(byte_stream)
     value = reader.read_long()
     self.assertEqual(value,0xFF1200A3)