-#!/usr/bin/python
+#!/usr/bin/env python
# Test whether a client produces a correct connect and subsequent disconnect.
-#!/usr/bin/python
+#!/usr/bin/env python
# Test whether a client sends a pingreq after the keepalive time
-#!/usr/bin/python
+#!/usr/bin/env python
# Test whether a client produces a correct connect with clean session not set.
-#!/usr/bin/python
+#!/usr/bin/env python
# Test whether a client produces a correct connect with a username and password.
-#!/usr/bin/python
+#!/usr/bin/env python
# Test whether a client produces a correct connect with a will.
# Will QoS=1, will retain=1.
-#!/usr/bin/python
+#!/usr/bin/env python
# Test whether a client produces a correct connect with a will, username and password.
-#!/usr/bin/python
+#!/usr/bin/env python
# Test whether a client sends a correct SUBSCRIBE to a topic with QoS 0.
-#!/usr/bin/python
+#!/usr/bin/env python
# Test whether a client sends a correct SUBSCRIBE to a topic with QoS 1.
-#!/usr/bin/python
+#!/usr/bin/env python
# Test whether a client sends a correct SUBSCRIBE to a topic with QoS 2.
-#!/usr/bin/python
+#!/usr/bin/env python
# Test whether a client sends a correct UNSUBSCRIBE packet.
-#!/usr/bin/python
+#!/usr/bin/env python
# Test whether a client responds correctly to a PUBLISH with QoS 1.
-#!/usr/bin/python
+#!/usr/bin/env python
# Test whether a client responds correctly to a PUBLISH with QoS 1.
-#!/usr/bin/python
+#!/usr/bin/env python
# Test whether a client sends a correct PUBLISH to a topic with QoS 1, then responds correctly to a disconnect.
-#!/usr/bin/python
+#!/usr/bin/env python
# Test whether a client sends a correct PUBLISH to a topic with QoS 1 and responds to a delay.
-#!/usr/bin/python
+#!/usr/bin/env python
# Test whether a client sends a correct PUBLISH to a topic with QoS 2 and responds to a disconnect.
-#!/usr/bin/python
+#!/usr/bin/env python
# Test whether a client sends a correct PUBLISH to a topic with QoS 1 and responds to a delay.
-#!/usr/bin/python
+#!/usr/bin/env python
# Test whether a client sends a correct PUBLISH to a topic with QoS 0 and no payload.
-#!/usr/bin/python
+#!/usr/bin/env python
# Test whether a client sends a correct PUBLISH to a topic with QoS 0.
-#!/usr/bin/python
+#!/usr/bin/env python
# Test whether a client sends a correct retained PUBLISH to a topic with QoS 0.
-#!/usr/bin/python
+#!/usr/bin/env python
import inspect
import os
-#!/usr/bin/python
+#!/usr/bin/env python
# Test whether a client produces a correct connect and subsequent disconnect when using SSL.
# Client must provide a certificate.
-#!/usr/bin/python
+#!/usr/bin/env python
# Test whether a client produces a correct connect and subsequent disconnect when using SSL.
-#!/usr/bin/python
+#!/usr/bin/env python
import inspect
import os
-#!/usr/bin/python
+#!/usr/bin/env python
import inspect
import os
-#!/usr/bin/python
+#!/usr/bin/env python
import os
import subprocess
-#!/usr/bin/python
+#!/usr/bin/env python
import os
import subprocess
-#!/usr/bin/python
+#!/usr/bin/env python
import paho.mqtt.client as mqtt
-#!/usr/bin/python
+#!/usr/bin/env python
import paho.mqtt.client as mqtt
-#!/usr/bin/python
+#!/usr/bin/env python
import paho.mqtt.client as mqtt
-#!/usr/bin/python
+#!/usr/bin/env python
import paho.mqtt.client as mqtt
-#!/usr/bin/python
+#!/usr/bin/env python
import os
import subprocess
-#!/usr/bin/python
+#!/usr/bin/env python
import os
import subprocess
-#!/usr/bin/python
+#!/usr/bin/env python
import os
import subprocess
-#!/usr/bin/python
+#!/usr/bin/env python
import os
import subprocess
-#!/usr/bin/python
+#!/usr/bin/env python
import os
import subprocess
-#!/usr/bin/python
+#!/usr/bin/env python
import os
import subprocess
-#!/usr/bin/python
+#!/usr/bin/env python
import os
import subprocess
-#!/usr/bin/python
+#!/usr/bin/env python
import os
import subprocess
-#!/usr/bin/python
+#!/usr/bin/env python
import os
import subprocess
-#!/usr/bin/python
+#!/usr/bin/env python
import os
import subprocess
-#!/usr/bin/python
+#!/usr/bin/env python
import os
import subprocess
-#!/usr/bin/python
+#!/usr/bin/env python
import os
import subprocess
-#!/usr/bin/python
+#!/usr/bin/env python
import os
import subprocess
-#!/usr/bin/python
+#!/usr/bin/env python
import os
import subprocess
-#!/usr/bin/python
+#!/usr/bin/env python
import os
import subprocess
-#!/usr/bin/python
+#!/usr/bin/env python
import os
import subprocess
-#!/usr/bin/python
+#!/usr/bin/env python
import os
import subprocess
-#!/usr/bin/python
+#!/usr/bin/env python
import paho.mqtt.client as mqtt
import sys
-#!/usr/bin/python3
+#!/usr/bin/env python3
import os
import subprocess
-#!/usr/bin/python3
+#!/usr/bin/env python3
import os
import subprocess
-#!/usr/bin/python3
+#!/usr/bin/env python3
import paho.mqtt.client as mqtt
-#!/usr/bin/python3
+#!/usr/bin/env python3
import paho.mqtt.client as mqtt
-#!/usr/bin/python3
+#!/usr/bin/env python3
import paho.mqtt.client as mqtt
-#!/usr/bin/python3
+#!/usr/bin/env python3
import paho.mqtt.client as mqtt
-#!/usr/bin/python3
+#!/usr/bin/env python3
import os
import subprocess
-#!/usr/bin/python3
+#!/usr/bin/env python3
import os
import subprocess
-#!/usr/bin/python3
+#!/usr/bin/env python3
import os
import subprocess
-#!/usr/bin/python3
+#!/usr/bin/env python3
import os
import subprocess
-#!/usr/bin/python3
+#!/usr/bin/env python3
import os
import subprocess
-#!/usr/bin/python3
+#!/usr/bin/env python3
import os
import subprocess
-#!/usr/bin/python
+#!/usr/bin/env python
import os
import subprocess
-#!/usr/bin/python3
+#!/usr/bin/env python3
import os
import subprocess
-#!/usr/bin/python3
+#!/usr/bin/env python3
import os
import subprocess
-#!/usr/bin/python3
+#!/usr/bin/env python3
import os
import subprocess
-#!/usr/bin/python3
+#!/usr/bin/env python3
import os
import subprocess
-#!/usr/bin/python3
+#!/usr/bin/env python3
import os
import subprocess
-#!/usr/bin/python3
+#!/usr/bin/env python3
import os
import subprocess
-#!/usr/bin/python3
+#!/usr/bin/env python3
import os
import subprocess
-#!/usr/bin/python3
+#!/usr/bin/env python3
import os
import subprocess
-#!/usr/bin/python3
+#!/usr/bin/env python3
import os
import subprocess
-#!/usr/bin/python3
+#!/usr/bin/env python3
import os
import subprocess
-#!/usr/bin/python3
+#!/usr/bin/env python3
import paho.mqtt.client as mqtt
import sys