mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-27 05:09:23 +01:00
We have to add a non-banmask hostmask to match against. banmask hostmask is
too general.
This commit is contained in:
parent
09c81c6d24
commit
20ebbc15d5
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user