~stefanor/ibid/expose-irc-username

« back to all changes in this revision

Viewing changes to ibid/test/plugins/test_core.py

  • Committer: Stefano Rivera
  • Date: 2012-07-31 10:02:50 UTC
  • mfrom: (1051 ibid)
  • mto: This revision was merged to the branch mainline in revision 1052.
  • Revision ID: stefano@rivera.za.net-20120731100250-kopnc69i2wocbw49
MergeĀ fromĀ trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
# Copyright (c) 2009-2010, Jeremy Thurgood and Max Rabkin
2
2
# Released under terms of the MIT/X/Expat Licence. See COPYING for details.
3
3
 
4
 
from twisted.trial import unittest
5
 
 
 
4
import ibid
6
5
import ibid.test
7
6
from ibid.event import Event
8
7
 
9
 
class TestAddressed(unittest.TestCase):
 
8
class TestAddressed(ibid.test.TestCase):
10
9
 
11
10
    def setUp(self):
12
 
        ibid.test.set_config({
13
 
            u'botname': u'test_ibid',
14
 
            u'plugins': {
15
 
                u'testplugin': {
16
 
                    u'names': [u'test_ibid', u'bot', u'ant']
17
 
                    },
18
 
                },
19
 
            })
 
11
        super(TestAddressed, self).setUp()
 
12
        ibid.config.botname = u'test_ibid'
 
13
        ibid.config.plugins['testplugin'] = ibid.test.FakeConfig(
 
14
                {'names': [u'test_ibid', u'bot', u'ant']})
20
15
 
21
16
        from ibid.plugins import core
22
17
        self.processor = core.Addressed(u'testplugin')