Mistři v programování na #hovnokod

Python #1534

from Sender import SenderSettings
from Emulator import EmulatorSettings
from Receiver import ReceiverSettings
from TestBed import TestBed

class TestSettings:
	def __init__(self, testbed, sender, emulator, receiver):
		if \
		not isinstance(testbed, TestBed) or \
		not isinstance(sender, SenderSettings) or \
		not isinstance(emulator, EmulatorSettings) or \
		not isinstance(receiver, ReceiverSettings):
			raise Exception('Invalid argument. %s %s %s %s.', str(type(testbed)), str(type(sender)), str(type(emulator)), str(type(receiver)))
		else:
			self.testbed = testbed
			self.sender = sender
			self.emulator = emulator
			self.receiver = receiver
			self.thread = None
			self.out = ''
			self.done = False

# EOF

Anonymous,