From 3736f6d5823b87e06b03e6ef602b4cae062d7cc3 Mon Sep 17 00:00:00 2001 From: Jeremy Fincher Date: Tue, 4 Jan 2005 03:46:55 +0000 Subject: [PATCH] I wrote this to show someone an example of a test, but figured I'd commit it since it's written. --- test/test_ircutils.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/test_ircutils.py b/test/test_ircutils.py index 65d6b57c9..07753951d 100644 --- a/test/test_ircutils.py +++ b/test/test_ircutils.py @@ -219,6 +219,10 @@ class FunctionsTestCase(SupyTestCase): self.assertEqual(ircutils.separateModes(['+sntl', '100']), [('+s', None),('+n', None),('+t', None),('+l', 100)]) + def testNickFromHostmask(self): + self.assertEqual(ircutils.nickFromHostmask('nick!user@host.domain.tld'), + 'nick') + def testToLower(self): self.assertEqual('jemfinch', ircutils.toLower('jemfinch')) self.assertEqual('{}|^', ircutils.toLower('[]\\~'))