text: import sys
  import os
  sys.path.append(os.path.abspath('../'))
  
  from unittest import TestCase
  from komand_rest.connection.connection import Connection
  from komand_rest.actions.post import Post
  import json
  import logging
  
  
  class TestPost(TestCase):
      def test_integration_post(self):
          log = logging.getLogger("Test")
          test_conn = Connection()
          test_action = Post()
  
          test_conn.logger = log
          test_action.logger = log
  
          try:
              with open("../tests/post.json") as file:
                  test_json = json.loads(file.read()).get("body")
                  connection_params = test_json.get("connection")
                  action_params = test_json.get("input")
          except Exception as e:
              message = """
              Could not find or read sample tests from /tests directory
              
              An exception here likely means you didn't fill out your samples correctly in the /tests directory 
              Please use 'icon-plugin generate samples', and fill out the resulting test files in the /tests directory
              """
              self.fail(message)
  
  
          test_conn.connect(connection_params)
          test_action.connection = test_conn
          results = test_action.run(action_params)
  
          self.assertTrue("body_object" in results.keys())
          self.assertTrue("status" in results.keys())
          self.assertTrue("headers" in results.keys())
          self.assertTrue("body_string" in results.keys())
  
  