container.py 546 B

123456789101112131415
  1. import curses
  2. import dbm
  3. import readline
  4. import bz2
  5. assert(bz2.decompress(bz2.compress(b'IT WORKS IT WORKS IT WORKS')) == b'IT WORKS IT WORKS IT WORKS')
  6. import platform
  7. if platform.python_implementation() != 'PyPy' and platform.python_version_tuple()[0] != '2':
  8. # PyPy and Python 2 don't support lzma
  9. import lzma
  10. assert(lzma.decompress(lzma.compress(b'IT WORKS IT WORKS IT WORKS')) == b'IT WORKS IT WORKS IT WORKS')
  11. import zlib
  12. assert(zlib.decompress(zlib.compress(b'IT WORKS IT WORKS IT WORKS')) == b'IT WORKS IT WORKS IT WORKS')