ZeroNet/src/Test/TestUiWebsocket.py

12 lines
320 B
Python
Raw Normal View History

2019-08-26 03:11:24 +02:00
import sys
import pytest
@pytest.mark.usefixtures("resetSettings")
class TestUiWebsocket:
def testPermission(self, ui_websocket):
res = ui_websocket.testAction("ping")
assert res == "pong"
res = ui_websocket.testAction("certList")
assert "You don't have permission" in res["error"]