From e473c53726b73b8378cbc13f8e54e602a481038a Mon Sep 17 00:00:00 2001 From: Kevin Murphy Date: Mon, 13 Sep 2004 07:12:53 +0000 Subject: [PATCH] Added a test case to catch the issue with properly pluralizing the word 'command' in the contributions output --- test/test_Misc.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/test/test_Misc.py b/test/test_Misc.py index fd1a1ef55..297453757 100644 --- a/test/test_Misc.py +++ b/test/test_Misc.py @@ -118,7 +118,14 @@ class MiscTestCase(ChannelPluginTestCase): # Test ability to list contributors self.assertNotError('contributors Misc') # Test ability to list contributions - self.assertNotError('contributors Misc skorobeus') + # Verify that when a single command contribution has been made, + # the word "command" is properly not pluralized. + # Note: This will break if the listed person ever makes more than + # one contribution to the Misc plugin + self.assertRegexp('contributors Misc skorobeus', 'command') + # Test handling of pluralization of "command" when person has + # contributed more than one command to the plugin. + # -- Need to create this case, check it with the regexp 'commands' # Test handling of invalid plugin self.assertRegexp('contributors InvalidPlugin', 'No such plugin')