5
__copyright__ = 'this file is in the public domain'
7
from gozerbot.bot import Bot
8
from gozerbot.generic import stringinlist, waitforqueue
9
from gozerbot.plugins import plugins
10
import unittest, Queue
12
plugins.reload('gozerplugs.plugs', 'code')
13
plugins.reload('gozerplugs.plugs', 'googletalk')
15
class test_code(unittest.TestCase):
17
b.userhosts['test'] = 'test@test'
19
def test_funcnames(self):
20
result = self.b.test('funcnames')
21
self.assert_(stringinlist('<plugname>', result))
23
def test_funcnames2(self):
24
result = self.b.test('funcnames mekker')
25
self.assert_(stringinlist('no mekker plugin exists', result))
27
def test_funcnames3(self):
28
result = self.b.test('funcnames code')
29
self.assert_(stringinlist('handle_funcnames', result))
31
def test_funcnames4(self):
32
result = self.b.test('funcnames googletalk')
33
self.assert_(stringinlist("can't find", result))