mirror of
https://github.com/progval/irctest.git
synced 2025-04-04 22:39:50 +00:00
regression test for ergochat/ergo#1898 (#130)
This commit is contained in:
committed by
GitHub
parent
8240cd95cf
commit
cac4428cbd
0
irctest/server_tests/ergo/__init__.py
Normal file
0
irctest/server_tests/ergo/__init__.py
Normal file
25
irctest/server_tests/ergo/services.py
Normal file
25
irctest/server_tests/ergo/services.py
Normal file
@ -0,0 +1,25 @@
|
||||
from irctest import cases
|
||||
from irctest.numerics import RPL_YOUREOPER
|
||||
|
||||
|
||||
class NickservTestCase(cases.BaseServerTestCase):
|
||||
@cases.mark_specifications("Ergo")
|
||||
def test_saregister(self):
|
||||
self.connectClient("root", name="root")
|
||||
self.sendLine("root", "OPER operuser operpassword")
|
||||
self.assertIn(RPL_YOUREOPER, {msg.command for msg in self.getMessages("root")})
|
||||
|
||||
self.sendLine(
|
||||
"root",
|
||||
"PRIVMSG NickServ :SAREGISTER saregister_test saregistertestpassphrase",
|
||||
)
|
||||
self.getMessages("root")
|
||||
|
||||
# test that the account was registered
|
||||
self.connectClient(
|
||||
name="saregister_test",
|
||||
nick="saregister_test",
|
||||
capabilities=["sasl"],
|
||||
account="saregister_test",
|
||||
password="saregistertestpassphrase",
|
||||
)
|
Reference in New Issue
Block a user