Onionr/onionr/runtests/uicheck.py
2019-09-27 18:04:49 -05:00

10 lines
363 B
Python

from onionrutils import localcommand
def check_ui(test_manager):
endpoints = ['/', '/mail/', '/friends/', '/board/']
for point in endpoints:
result = localcommand.local_command(point)
if not result: raise ValueError
result = result.lower()
if not 'onionr' in result and not 'Onionr' in result:
raise ValueError