Added a commented-out test I never got to work.

This commit is contained in:
Jeremy Fincher 2003-12-04 08:20:40 +00:00
parent 417f57f4e8
commit 978fcc2f55

View File

@ -36,10 +36,24 @@ import ircdb
import ircmsgs import ircmsgs
class ChannelTestCase(ChannelPluginTestCase, PluginDocumentation): class ChannelTestCase(ChannelPluginTestCase, PluginDocumentation):
plugins = ('Channel',) plugins = ('Channel', 'User')
def testLobotomies(self): def testLobotomies(self):
self.assertRegexp('lobotomies', 'not.*any') self.assertRegexp('lobotomies', 'not.*any')
## def testCapabilities(self):
## self.prefix = 'foo!bar@baz'
## self.irc.feedMsg(ircmsgs.privmsg(self.irc.nick, 'register foo bar',
## prefix=self.prefix))
## u = ircdb.users.getUser(0)
## u.addCapability('%s.op' % self.channel)
## ircdb.users.setUser(0, u)
## self.assertNotError(' ')
## self.assertResponse('user capabilities foo', '[]')
## self.assertNotError('channel addcapability foo op')
## self.assertRegexp('channel capabilities foo', 'op')
## self.assertNotError('channel removecapability foo op')
## self.assertResponse('user capabilities foo', '[]')
def testUnban(self): def testUnban(self):
self.assertError('unban foo!bar@baz') self.assertError('unban foo!bar@baz')
self.irc.feedMsg(ircmsgs.op(self.channel, self.nick)) self.irc.feedMsg(ircmsgs.op(self.channel, self.nick))