From 63eb848946a87cf112ce5f710cc182ebd1c774f3 Mon Sep 17 00:00:00 2001 From: Jeremy Fincher Date: Thu, 28 Aug 2003 22:26:48 +0000 Subject: [PATCH] Added tests for error conditions. --- test/test_Alias.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test/test_Alias.py b/test/test_Alias.py index 86b19ebb8..61091f4ca 100644 --- a/test/test_Alias.py +++ b/test/test_Alias.py @@ -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')