22811cb
diff -up ./tests/test_mex.py.orig ./tests/test_mex.py
22811cb
--- ./tests/test_mex.py.orig	2018-10-19 00:29:42.000000000 +0200
22811cb
+++ ./tests/test_mex.py	2018-11-02 01:34:24.851553069 +0100
22811cb
@@ -25,6 +25,7 @@
22811cb
 #
22811cb
 #------------------------------------------------------------------------------
22811cb
 import os
22811cb
+from distutils.version import LooseVersion
22811cb
 import unittest
22811cb
 import httpretty
22811cb
 from tests import util
22811cb
@@ -52,7 +53,10 @@ class Test_Mex(unittest.TestCase):
22811cb
             mex.discover()
22811cb
             self.fail('No exception was thrown caused by failed request')
22811cb
         except Exception as exp:
22811cb
-            self.assertEqual(exp.args[0], 'Mex Get request returned http error: 500 and server response: HTTPretty :)')
22811cb
+            if LooseVersion(httpretty.__version__) >= LooseVersion("0.9.0"):
22811cb
+                self.assertEqual(exp.args[0], 'Mex Get request returned http error: 500 and server response: {"message": "HTTPretty :)"}')
22811cb
+            else:
22811cb
+                self.assertEqual(exp.args[0], 'Mex Get request returned http error: 500 and server response: HTTPretty :)')
22811cb
 
22811cb
     @httpretty.activate
22811cb
     def _happyPathTest(self, file_name, expectedUrl):