291
291
AvatarTestCase.setUp(self)
292
292
self.avatar = CodehostingAvatar(self.aliceUserDict, None)
293
293
self.reactor = MockReactor()
294
295
def lookup_template(command):
296
297
return 'bar baz %(user_id)s'
297
298
raise ForbiddenCommand("Not allowed to execute %r." % command)
298
300
self.session = RestrictedExecOnlySession(
299
301
self.avatar, self.reactor, lookup_template)