Beispiel #1
0
 def setUp(self):
     super(AsyncRunManager_setupRun, self).setUp()
     self.actor = Actor('test')
     self.isSetUp = False
     self.q_sig = Link('test_sig', 'test_start', 'test_end')
     self.q_comm = Link('test_comm', 'test_start', 'test_end')
     self.runNum = 0
Beispiel #2
0
 def setUp(self):
     super(AsyncRunManager_MultiActorTest, self).setUp()
     self.actor = Actor('test')
     self.isSetUp = False
     q_sig = Queue()
     self.q_sig = AsyncQueue(q_sig, 'test_sig', 'test_start', 'test_end')
     q_comm = Queue()
     self.q_comm = AsyncQueue(q_comm, 'test_comm', 'test_start', 'test_end')
     self.runNum = 0
Beispiel #3
0
class Actor_addLink(ActorDependentTestCase):
    def setUp(self):
        super(Actor_addLink, self).setUp()
        self.actor = Actor('test')

    def test_addLink(self):

        links = {'1': 'one', '2': 'two'}
        self.actor.setLinks(links)
        newName = '3'
        newLink = 'three'
        self.actor.addLink(newName, newLink)
        links.update({'3': 'three'})
        self.assertEqual(self.actor.getLinks()['3'], 'three')
        self.assertEqual(self.actor.getLinks(), links)

    def tearDown(self):
        super(Actor_addLink, self).tearDown()
Beispiel #4
0
 def setUp(self):
     super(RunManager_process, self).setUp()
     self.actor = Actor('test')
Beispiel #5
0
 def setUp(self):
     super(RunManager_setupRun, self).setUp()
     self.actor = Actor('test')
     self.isSetUp = False
     self.runNum = 0
Beispiel #6
0
 def setUp(self):
     super(Actor_addLink, self).setUp()
     self.actor = Actor('test')
Beispiel #7
0
 def setUp(self):
     super(Actor_setStore, self).setUp()
     self.actor = Actor('test')
     self.limbo = Limbo()
Beispiel #8
0
 def setUp(self):
     super(Actor_setLinkIn, self).setUp()
     self.actor = Actor('test')