def setUp(self): # a hack to make the storage thing work. import weblib self.sess = {} weblib.sess = self.sess self.REQ = weblib.Request() self.app = ShopApp(self.REQ, zikeshop.Cart({}), clerk) self.cwd = os.getcwd() os.chdir("public") self.app.enter()