def test_success(self): res = loadAndCreateObject("Pilot.MessageSender", "LocalFileSender", {"LocalOutputFile": "blabla"}) self.assertTrue(res)
def test_fail(self): res = loadAndCreateObject('MessageSender', 'NonExistingClass', '') self.assertFalse(res)
def test_fail2(self): res = loadAndCreateObject('Bla.Bla', 'NonExistingClass', '') self.assertFalse(res)
def test_success(self): res = loadAndCreateObject('Pilot.MessageSender', 'LocalFileSender', {'LocalOutputFile': 'blabla'}) self.assertTrue(res)