old_contents: import unittest
  
  from django.conf import settings
  settings.configure()
  
  from elastic_panel import panel
  
  
  class ImportTest(unittest.TestCase):
      def test_something(self):
          self.assertEqual(True, True)
  
  
  if __name__ == '__main__':
      unittest.main()
  
new_contents: import unittest
  
  from django.conf import settings
  settings.configure()
  
  from elastic_panel import panel
  
  
  class ElasticQueryInfo:
      def __init__(self, method, full_url, path, body, status_code, response, duration):
          if not body:
              body = b''  # Python 3 TypeError if None
          self.method = method
          self.full_url = full_url
          self.path = path
          self.body = _pretty_json(body)
          self.status_code = status_code
          self.response = _pretty_json(response)
          self.duration = round(duration * 1000, 2)
          encoded_body = self.body
          if not isinstance(self.body, bytes):
              encoded_body = encoded_body.encode('ascii', 'ignore')
          
          self.hash = hashlib.md5("{}{}".format(self.full_url.encode('ascii', 'ignore'), encoded_body)).hexdigest()
  
  class ImportTest(unittest.TestCase):
      def test_input(self):
          panel.ElasticQueryInfo("GET", "asdasd", "asdasd", "{}", 200, "adssad", 1)
          panel.ElasticQueryInfo("GET", "asdasd", "asdasd", "", 200, "adssad", 1)
          panel.ElasticQueryInfo("GET", "asdasd", "asdasd", None, 200, "adssad", 1)
          panel.ElasticQueryInfo("GET", "asdasd", "asdasd", "{'asddsa': 'é'}", 200, "adssad", 1)
                                                        
  
  
  if __name__ == '__main__':
      unittest.main()
  
subject: Add some body tests