示例#1
0
 def test_success(self):
     res = loadAndCreateObject("Pilot.MessageSender", "LocalFileSender", {"LocalOutputFile": "blabla"})
     self.assertTrue(res)
示例#2
0
 def test_fail(self):
     res = loadAndCreateObject('MessageSender', 'NonExistingClass', '')
     self.assertFalse(res)
示例#3
0
 def test_fail2(self):
     res = loadAndCreateObject('Bla.Bla', 'NonExistingClass', '')
     self.assertFalse(res)
示例#4
0
 def test_success(self):
     res = loadAndCreateObject('Pilot.MessageSender', 'LocalFileSender',
                               {'LocalOutputFile': 'blabla'})
     self.assertTrue(res)