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

5 years ago
  1. """
  2. tests the server functionality
  3. """
  4. def test_ping(server):
  5. assert server.ping(server, "some message") == "PONG"
  6. def test_command_pass(server):
  7. server.password = "password"
  8. assert server.command_pass(server, "password") == True
  9. def test_command_pass_wrong(server):
  10. server.password = "password"
  11. assert server.command_pass(server, "wrong password") == False