text: import os.path
  
  from tornado.testing import gen_test
  
  from thumbor_plugins.test_helpers.engine import EngineCase
  
  
  class Jp2Test(EngineCase):
      optimizer = "thumbor_plugins.optimizers.jp2"
      fixtures_path = os.path.join(os.path.dirname(__file__), "imgs")
  
      @gen_test
      async def test_jp2(self):
          result = await self.http_client.fetch(self.get_url("/unsafe/gradient.jpg"))
          self.assert_result_smaller_than_original(result, "gradient.jpg")
  