mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-25 19:44:13 +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 *
|
from test import *
|
||||||
|
|
||||||
class MiscCommandsTestCase(PluginTestCase, PluginDocumentation):
|
class MiscCommandsTestCase(PluginTestCase, PluginDocumentation):
|
||||||
plugins = ('MiscCommands',)
|
plugins = ('MiscCommands', 'Utilities')
|
||||||
def testHelp(self):
|
def testHelp(self):
|
||||||
self.assertNotError('help list')
|
self.assertNotError('help list')
|
||||||
self.assertNotError('help help')
|
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/\s+/', 'last --with foo')
|
||||||
self.assertResponse('last --regexp m/bar/', 'foo bar baz')
|
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:
|
# vim:set shiftwidth=4 tabstop=8 expandtab textwidth=78:
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user