def __init__(self, ID, *args, **kwargs): self.name = "All-purpose carry-all" self.text = "What is this? I dont know" GameObject.__init__(self, ID, **kwargs) Lockable.__init__(self, **kwargs) Container.__init__(self, **kwargs) Living.__init__(self, **kwargs) Scriptable.__init__(self, **kwargs) CharStats.__init__(self, **kwargs) Wearable.__init__(self, "left_arm", **kwargs) Usable.__init__(self, **kwargs) Weapon.__init__(self, **kwargs) Destructable.__init__(self, **kwargs) Trapable.__init__(self, **kwargs) Carryable.__init__(self, **kwargs)
def testDie(self): """Test Living mixin die ability""" creature = Living(); self.assertTrue(creature.is_living) creature.die() self.assertFalse(creature.is_living)
def testDie(self): creature = Living(); self.assertTrue(creature.is_living) creature.die() self.assertFalse(creature.is_living)