mirror of https://github.com/Mikaela/Limnoria.git
Changed the name of the IMDB plugin to Movies.
This commit is contained in:
parent
fa8fc4ab52
commit
7ca40702bf
|
@ -62,7 +62,7 @@ example = utils.wrapLines("""
|
||||||
<supybot> "Kevin Spacey" is apparently a person. More information is available at <http://us.imdb.com/Name?Spacey,+Kevin>
|
<supybot> "Kevin Spacey" is apparently a person. More information is available at <http://us.imdb.com/Name?Spacey,+Kevin>
|
||||||
""")
|
""")
|
||||||
|
|
||||||
class IMDB(callbacks.Privmsg):
|
class Movies(callbacks.Privmsg):
|
||||||
threaded = True
|
threaded = True
|
||||||
def _formatMovie(self, movie):
|
def _formatMovie(self, movie):
|
||||||
title = utils.unCommaThe(movie.title())
|
title = utils.unCommaThe(movie.title())
|
||||||
|
@ -109,6 +109,7 @@ class IMDB(callbacks.Privmsg):
|
||||||
irc.reply(msg, 'Matches: ' + utils.commaAndify(titles))
|
irc.reply(msg, 'Matches: ' + utils.commaAndify(titles))
|
||||||
|
|
||||||
|
|
||||||
Class = IMDB
|
Class = Movies
|
||||||
|
|
||||||
|
|
||||||
# vim:set shiftwidth=4 tabstop=8 expandtab textwidth=78:
|
# vim:set shiftwidth=4 tabstop=8 expandtab textwidth=78:
|
|
@ -31,8 +31,8 @@
|
||||||
|
|
||||||
from test import *
|
from test import *
|
||||||
|
|
||||||
class IMDBTestCase(PluginTestCase, PluginDocumentation):
|
class MoviesTestCase(PluginTestCase, PluginDocumentation):
|
||||||
plugins = ('IMDB',)
|
plugins = ('Movies',)
|
||||||
def testImdb(self):
|
def testImdb(self):
|
||||||
self.assertNotError('imdb die hard')
|
self.assertNotError('imdb die hard')
|
||||||
self.assertRegexp('imdb kevin spacey', 'is apparently a person')
|
self.assertRegexp('imdb kevin spacey', 'is apparently a person')
|
||||||
|
@ -40,7 +40,6 @@ class IMDBTestCase(PluginTestCase, PluginDocumentation):
|
||||||
def testGenrePluralization(self):
|
def testGenrePluralization(self):
|
||||||
self.assertNotRegexp('imdb 24', 'genres')
|
self.assertNotRegexp('imdb 24', 'genres')
|
||||||
self.assertRegexp('imdb die hard', 'genres')
|
self.assertRegexp('imdb die hard', 'genres')
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# vim:set shiftwidth=4 tabstop=8 expandtab textwidth=78:
|
# vim:set shiftwidth=4 tabstop=8 expandtab textwidth=78:
|
Loading…
Reference in New Issue