Exemplo n.º 1
0
	def setUpClass(cls):
		l = list_radio_devices()

		if len(l) < 2:
			raise unittest.SkipTest("less than two VESNA nodes connected")

		cls.node1 = cls.RADIO_CLASS(l.pop())
		cls.node2 = cls.RADIO_CLASS(l.pop())

		cls.node1.start()
		cls.node2.start()
Exemplo n.º 2
0
    def setUpClass(cls):
        l = list_radio_devices()

        if len(l) < 2:
            raise unittest.SkipTest("less than two VESNA nodes connected")

        cls.node1 = cls.RADIO_CLASS(l.pop())
        cls.node2 = cls.RADIO_CLASS(l.pop())

        cls.node1.start()
        cls.node2.start()
Exemplo n.º 3
0
	def test_combinations(self):

		nodes = []
		for device in list_radio_devices():
			nodes.append(AsyncRadio(device))

		for node in nodes:
			node.start()

		for node1, node2 in combinations(nodes, 2):
			self._send_one(node1, node2)
			self._send_one(node2, node1)

		for node in nodes:
			node.stop()
Exemplo n.º 4
0
    def test_combinations(self):

        nodes = []
        for device in list_radio_devices():
            nodes.append(AsyncRadio(device))

        for node in nodes:
            node.start()

        for node1, node2 in combinations(nodes, 2):
            self._send_one(node1, node2)
            self._send_one(node2, node1)

        for node in nodes:
            node.stop()
Exemplo n.º 5
0
	def _do(self, cls):
		l = list_radio_devices()

		if len(l) < 2:
			raise unittest.SkipTest("less than two VESNA nodes connected")

		device = l[0]

		f = serial.Serial(device, 115200, timeout=2.)
		f.write('\x00')
		f.close()

		r = cls(device)
		r.start()
		r.cmd('a 0')

		r.stop()
Exemplo n.º 6
0
    def _do(self, cls):
        l = list_radio_devices()

        if len(l) < 2:
            raise unittest.SkipTest("less than two VESNA nodes connected")

        device = l[0]

        f = serial.Serial(device, 115200, timeout=2.)
        f.write('\x00')
        f.close()

        r = cls(device)
        r.start()
        r.cmd('a 0')

        r.stop()
Exemplo n.º 7
0
    def setUp(self):
        self.testbed = Testbed()

        if len(list_radio_devices()) < 2:
            raise unittest.SkipTest("less than two VESNA nodes connected")
Exemplo n.º 8
0
	def setUp(self):
		self.testbed = Testbed()

		if len(list_radio_devices()) < 2:
			raise unittest.SkipTest("less than two VESNA nodes connected")