def __init__(self, title, description): TextObject.__init__(self, title, description) self._locals = dict() self.commandmanager = CommandManager()
def __init__(self, name, description): TextObject.__init__(self, name, description)
def __init__(self, name='Player', description='The player'): TextObject.__init__(self, name, description)
def test_description_setter(self): textObject = TextObject("Test", "Test") textObject.description = "None" self.assertEqual(textObject.description, "None")
def test_description_setter_Empty_String(self): textObject = TextObject("Test","Test") with self.assertRaises(EmptyStringException): textObject.description=""
def test_name_setter(self): textObject = TextObject("Test","Test") with self.assertRaises(EmptyStringException): textObject.name=""