def test_createInstance(self): x = ClassAlias(Spam, 'org.example.spam.Spam') y = x.createInstance() self.assertTrue(isinstance(y, Spam))