Added test for more command and framework.

This commit is contained in:
Jeremy Fincher 2003-09-07 05:33:37 +00:00
parent 01d71dc9a3
commit 3ba5942be9

View File

@ -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: