Add in tests.
This commit is contained in:
parent
9ab2cb1d81
commit
5d32ce789a
6
test.py
6
test.py
|
|
@ -1,5 +1,5 @@
|
|||
###
|
||||
# Copyright (c) 2012-2013, spline
|
||||
# Copyright (c) 2012-2014, spline
|
||||
# All rights reserved.
|
||||
#
|
||||
#
|
||||
|
|
@ -10,5 +10,9 @@ from supybot.test import *
|
|||
class UrbanDictionaryTestCase(PluginTestCase):
|
||||
plugins = ('UrbanDictionary',)
|
||||
|
||||
def testUrbanDictionary(self):
|
||||
conf.supybot.plugins.UrbanDictionary.disableANSI.setValue('True')
|
||||
self.assertRegexp('urbandictionary hello', 'hello :: what you say when your talking casually with friends and your mom walks in the room')
|
||||
|
||||
|
||||
# vim:set shiftwidth=4 tabstop=4 expandtab textwidth=79:
|
||||
|
|
|
|||
Loading…
Reference in New Issue