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.

14 lines
387 B

"""
tests the server functionality
"""
import pytest
def test_ping(server):
assert server.ping(server, "some message") == "PONG"
@pytest.mark.parametrize("test_input,expected", [("password", True), ("wrong password", False)])
def test_command_pass(server, test_input, expected):
server.password = "password"
assert server.command_pass(server, test_input) == expected