Added tests for error conditions.

This commit is contained in:
Jeremy Fincher 2003-08-28 22:26:48 +00:00
parent 336108c736
commit 63eb848946

View File

@ -84,6 +84,12 @@ class AliasTestCase(PluginTestCase):
self.assertNotError('alias rev "echo $3 $2 $1"') self.assertNotError('alias rev "echo $3 $2 $1"')
self.assertResponse('rev foo bar baz', 'baz bar foo') self.assertResponse('rev foo bar baz', 'baz bar foo')
def testNoRecursion(self):
self.assertError('alias rotinfinity "rot13 [rotinfinity $1]"')
def testNonCanonicalName(self):
self.assertError('alias FOO foo')
# vim:set shiftwidth=4 tabstop=8 expandtab textwidth=78: # vim:set shiftwidth=4 tabstop=8 expandtab textwidth=78: