mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-30 06:49:24 +01:00
Updated.
This commit is contained in:
parent
1132c63d38
commit
88cc0412c4
@ -34,7 +34,9 @@ from testsupport import *
|
|||||||
class MiscTestCase(ChannelPluginTestCase, PluginDocumentation):
|
class MiscTestCase(ChannelPluginTestCase, PluginDocumentation):
|
||||||
plugins = ('Scheduler', 'Utilities')
|
plugins = ('Scheduler', 'Utilities')
|
||||||
def testAddRemove(self):
|
def testAddRemove(self):
|
||||||
self.assertNotError('scheduler add [seconds 5s] echo foo bar baz')
|
self.assertRegexp('scheduler list', 'no.*commands')
|
||||||
|
m = self.assertNotError('scheduler add [seconds 5s] echo foo bar baz')
|
||||||
|
self.assertNotRegexp('scheduler list', 'no.*commands')
|
||||||
self.assertNoResponse(' ', 4)
|
self.assertNoResponse(' ', 4)
|
||||||
self.assertResponse(' ', 'foo bar baz')
|
self.assertResponse(' ', 'foo bar baz')
|
||||||
m = self.assertNotError('scheduler add 5 echo xyzzy')
|
m = self.assertNotError('scheduler add 5 echo xyzzy')
|
||||||
@ -52,11 +54,14 @@ class MiscTestCase(ChannelPluginTestCase, PluginDocumentation):
|
|||||||
def testRepeat(self):
|
def testRepeat(self):
|
||||||
self.assertNotError('scheduler repeat repeater 5 echo foo bar baz')
|
self.assertNotError('scheduler repeat repeater 5 echo foo bar baz')
|
||||||
self.assertNotError(' ') # First response.
|
self.assertNotError(' ') # First response.
|
||||||
|
self.assertResponse('scheduler list', 'repeater: "echo foo bar baz"')
|
||||||
self.assertNoResponse(' ', 4)
|
self.assertNoResponse(' ', 4)
|
||||||
self.assertResponse(' ', 'foo bar baz')
|
self.assertResponse(' ', 'foo bar baz')
|
||||||
|
self.assertResponse('scheduler list', 'repeater: "echo foo bar baz"')
|
||||||
self.assertNoResponse(' ', 4)
|
self.assertNoResponse(' ', 4)
|
||||||
self.assertResponse(' ', 'foo bar baz')
|
self.assertResponse(' ', 'foo bar baz')
|
||||||
self.assertNotError('scheduler remove repeater')
|
self.assertNotError('scheduler remove repeater')
|
||||||
|
self.assertNotRegexp('scheduler list', 'repeater')
|
||||||
self.assertNoResponse(' ', 5)
|
self.assertNoResponse(' ', 5)
|
||||||
|
|
||||||
def testRepeatWorksWithNestedCommands(self):
|
def testRepeatWorksWithNestedCommands(self):
|
||||||
|
Loading…
Reference in New Issue
Block a user