We have to add a non-banmask hostmask to match against. banmask hostmask is

too general.
This commit is contained in:
James Vega 2004-08-01 16:05:07 +00:00
parent 09c81c6d24
commit 20ebbc15d5

View File

@ -359,6 +359,7 @@ class UsersDictionaryTestCase(IrcdbTestCase):
hostmask = 'foo!xyzzy@baz.domain.com' hostmask = 'foo!xyzzy@baz.domain.com'
banmask = ircutils.banmask(hostmask) banmask = ircutils.banmask(hostmask)
u.addHostmask(banmask) u.addHostmask(banmask)
u.addHostmask(hostmask)
u.name = 'foo' u.name = 'foo'
self.users.setUser(id, u) self.users.setUser(id, u)
self.assertEqual(self.users.getUser('foo'), u) self.assertEqual(self.users.getUser('foo'), u)