mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-30 06:49:24 +01:00
Fixed bug in the test.
This commit is contained in:
parent
873fbe20bc
commit
ad78a341a5
@ -32,14 +32,21 @@
|
||||
from test import *
|
||||
|
||||
import utils
|
||||
import ircdb
|
||||
|
||||
class NotesTestCase(PluginTestCase):
|
||||
plugins = ('Notes', 'MiscCommands')
|
||||
class NotesTestCase(PluginTestCase, PluginDocumentation):
|
||||
plugins = ('Notes', 'MiscCommands', 'UserCommands')
|
||||
def testHelps(self):
|
||||
self.assertNotError('help sendnote')
|
||||
self.assertNotError('list Notes')
|
||||
|
||||
def testSendnote(self):
|
||||
#print repr(ircdb.users.getUser(self.prefix))
|
||||
self.prefix = 'foo!bar@baz'
|
||||
self.assertNotError('register foo bar')
|
||||
(id, u) = ircdb.users.newUser()
|
||||
u.name = 'inkedmn'
|
||||
ircdb.users.setUser(id, u)
|
||||
self.assertNotError('sendnote inkedmn test')
|
||||
self.assertError('sendnote alsdkjfasldk foo')
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user