You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
386 B
15 lines
386 B
"""
|
|
tests the server functionality
|
|
"""
|
|
|
|
|
|
def test_ping(server):
|
|
assert server.ping(server, "some message") == "PONG"
|
|
|
|
def test_command_pass(server):
|
|
server.password = "password"
|
|
assert server.command_pass(server, "password") == True
|
|
|
|
def test_command_pass_wrong(server):
|
|
server.password = "password"
|
|
assert server.command_pass(server, "wrong password") == False
|