Пример #1
0
 def test_from_nick_host(self):
     self.assertEqual(IrcMessagePrefix.fromPrefix('Kappa!Keepo@localhost'),
                      IrcMessagePrefix(nick='Kappa', user='******',
                                       host='localhost'))
Пример #2
0
 def test_from_nick(self):
     self.assertEqual(IrcMessagePrefix.fromPrefix('Kappa'),
                      IrcMessagePrefix(nick='Kappa'))
Пример #3
0
 def test_from_nick_user(self):
     self.assertEqual(IrcMessagePrefix.fromPrefix('Kappa!Keepo'),
                      IrcMessagePrefix(nick='Kappa', user='******'))
Пример #4
0
 def test_from_servername(self):
     self.assertEqual(IrcMessagePrefix.fromPrefix('megotsthis.com'),
                      IrcMessagePrefix(servername='megotsthis.com'))