Beispiel #1
0
    def test_canArmThroughProxy(self):
        connStr = self.url
        proxy = Proxy(connStr, ["udp:localhost:12052", self.gcs], self.dkBaud,
                      251, self.__class__.__name__)
        proxy.start()

        self.stressTestArm("udp:localhost:12052")
Beispiel #2
0
    def test_downloadWaypointThroughProxyCannotTimeout(self):
        connStr = self.url
        proxy = Proxy(connStr, ["udp:localhost:12052", self.gcs], self.dkBaud,
                      251, self.__class__.__name__)
        proxy.start()

        self.stressTestDownloadWP("udp:localhost:12052")
Beispiel #3
0
    def testProxyToNonExistingDrone(self):
        proxy = Proxy("udp:dummy:1000", ["udp:localhost:12052", self.gcs],
                      self.dkBaud, 251, self.__class__.__name__)

        try:
            proxy.start()
        except Exception as e:
            print(e)
            return
        else:
            raise os.error("IMPOSSIBLE!")
Beispiel #4
0
    def testProxyRestart(self):

        proxy = Proxy(self.url, ["udp:localhost:12052", self.gcs], self.dkBaud,
                      251, self.__class__.__name__)

        for i in range(1, 3):
            proxy.start()
            proxy.stop()