Updated to use makeChannelCapability, which is more appropriate.

This commit is contained in:
Jeremy Fincher 2004-02-08 09:27:15 +00:00
parent 40a0ed929f
commit e0e53b57d0

View File

@ -43,7 +43,8 @@ class ChannelDBTestCase(ChannelPluginTestCase):
'register foo bar',
prefix=self.prefix))
_ = self.irc.takeMsg()
ircdb.users.getUser(self.nick).addCapability(self.channel + '.op')
chancap = ircdb.makeChannelCapability(self.channel, 'op')
ircdb.users.getUser(self.nick).addCapability(chancap)
def testNoKeyErrorEscapeFromSeen(self):
self.assertRegexp('seen asldfkjasdlfkj', '^I have not seen')