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

@ -83,6 +83,12 @@ class AliasTestCase(PluginTestCase):
def testMoreDollars(self):
self.assertNotError('alias rev "echo $3 $2 $1"')
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')