def setUp(self): """ Create a room, with a dude in it, and a chair he can sit in. """ CommandTestCaseMixin.setUp(self) self.chairThing = Thing(store=self.store, name=u"chair") self.chairThing.moveTo(self.location) self.chair = Chair.createFor(self.chairThing)
def setUp(self): """ Set Up. """ CommandTestCaseMixin.setUp(self) self.squeaker = Thing(store=self.store, name=u"squeaker") self.squeaker.moveTo(self.location) self.squeakification = Squeaker.createFor(self.squeaker)
def setUp(self): """ Create a container, C{self.box} that is large enough to stand in. """ CommandTestCaseMixin.setUp(self) self.container = createLocation(self.store, u"box", None) self.box = self.container.thing self.box.proper = False self.box.moveTo(self.location)
def setUp(self): """ Tether a ball to the room. """ CommandTestCaseMixin.setUp(self) self.ball = Thing(store=self.store, name=u'ball') self.ball.moveTo(self.location) self.tether = Tether.createFor(self.ball, to=self.location) self.otherPlace = Thing(store=self.store, name=u'elsewhere') Container.createFor(self.otherPlace, capacity=1000) Exit.link(self.location, self.otherPlace, u'north')
def setUp(self): """ Create a room with a L{GlassBox} in it, which itself contains a ball. """ CommandTestCaseMixin.setUp(self) self.box = Thing(store=self.store, name=u'box', description=u'The system under test.') self.ball = Thing(store=self.store, name=u'ball', description=u'an interesting object') self.container = Container.createFor(self.box) GlassBox.createFor(self.box) self.ball.moveTo(self.box) self.box.moveTo(self.location) self.container.closed = True