mirror of https://github.com/progval/irctest.git
Fix assertion messages.
This commit is contained in:
parent
d5de337c8d
commit
813f968321
|
@ -27,7 +27,7 @@ class PasswordedConnectionRegistrationTestCase(cases.BaseServerTestCase):
|
||||||
self.sendLine(1, 'USER username * * :Realname')
|
self.sendLine(1, 'USER username * * :Realname')
|
||||||
m = self.getRegistrationMessage(1)
|
m = self.getRegistrationMessage(1)
|
||||||
self.assertNotEqual(m.command, '001',
|
self.assertNotEqual(m.command, '001',
|
||||||
msg='Got 001 NICK+USER but missing PASS')
|
msg='Got 001 after NICK+USER but missing PASS')
|
||||||
|
|
||||||
def testPassAfterNickuser(self):
|
def testPassAfterNickuser(self):
|
||||||
"""“The password can and must be set before any attempt to register
|
"""“The password can and must be set before any attempt to register
|
||||||
|
@ -46,7 +46,7 @@ class PasswordedConnectionRegistrationTestCase(cases.BaseServerTestCase):
|
||||||
self.sendLine(1, 'PASS {}'.format(self.password))
|
self.sendLine(1, 'PASS {}'.format(self.password))
|
||||||
m = self.getRegistrationMessage(1)
|
m = self.getRegistrationMessage(1)
|
||||||
self.assertNotEqual(m.command, '001',
|
self.assertNotEqual(m.command, '001',
|
||||||
'Got 001 after NICK+USER but incorrect PASS')
|
'Got 001 after PASS sent after NICK+USER')
|
||||||
|
|
||||||
class ConnectionRegistrationTestCase(cases.BaseServerTestCase):
|
class ConnectionRegistrationTestCase(cases.BaseServerTestCase):
|
||||||
def testQuitDisconnects(self):
|
def testQuitDisconnects(self):
|
||||||
|
|
Loading…
Reference in New Issue