Changed the name of the News plugin to ChannelNews.

This commit is contained in:
Jeremy Fincher 2003-10-18 13:04:29 +00:00
parent 7ca40702bf
commit 84fc2b1078
2 changed files with 4 additions and 4 deletions

View File

@ -76,7 +76,7 @@ be a lot more detailed. (Subject: "Another test news item", added by Strike on
07:12 PM, September 12, 2003, expires at 08:36 PM, September 12, 2003)
""")
class News(plugins.ChannelDBHandler, callbacks.Privmsg):
class ChannelNews(plugins.ChannelDBHandler, callbacks.Privmsg):
def __init__(self):
plugins.ChannelDBHandler.__init__(self)
callbacks.Privmsg.__init__(self)
@ -273,6 +273,6 @@ class News(plugins.ChannelDBHandler, callbacks.Privmsg):
Class = News
Class = ChannelNews
# vim:set shiftwidth=4 tabstop=8 expandtab textwidth=78:

View File

@ -42,8 +42,8 @@ except ImportError:
if sqlite is not None:
class NewsTestCase(ChannelPluginTestCase):
plugins = ('News',)
class ChannelNewsTestCase(ChannelPluginTestCase):
plugins = ('ChannelNews',)
def testAddnews(self):
self.assertNotError('addnews 0 subject: foo')
self.assertRegexp('news', 'subject')