mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-11 12:42:34 +01:00
Added test for more command and framework.
This commit is contained in:
parent
01d71dc9a3
commit
3ba5942be9
@ -32,7 +32,7 @@
|
||||
from test import *
|
||||
|
||||
class MiscCommandsTestCase(PluginTestCase, PluginDocumentation):
|
||||
plugins = ('MiscCommands',)
|
||||
plugins = ('MiscCommands', 'Utilities')
|
||||
def testHelp(self):
|
||||
self.assertNotError('help list')
|
||||
self.assertNotError('help help')
|
||||
@ -79,6 +79,12 @@ class MiscCommandsTestCase(PluginTestCase, PluginDocumentation):
|
||||
self.assertResponse('last --regexp m/\s+/', 'last --with foo')
|
||||
self.assertResponse('last --regexp m/bar/', 'foo bar baz')
|
||||
|
||||
def testMore(self):
|
||||
self.assertRegexp('echo %s' % ('abc'*300), 'more')
|
||||
self.assertRegexp('more', 'more')
|
||||
self.assertNotRegexp('more', 'more')
|
||||
|
||||
|
||||
|
||||
# vim:set shiftwidth=4 tabstop=8 expandtab textwidth=78:
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user