cryptonas/plugins/shutdown/unittests.py
lars 1438913656 renamed python package to cryptobox-server
unittests are working again
http-error handling implemented
2006-11-27 19:25:26 +00:00

12 lines
284 B
Python

import cryptobox.web.testclass
class unittests(cryptobox.web.testclass.WebInterfaceTestClass):
def test_read_form(self):
url = self.URL + "shutdown"
self.register_auth(url)
self.cmd.go(url)
self.cmd.find('shutdown\?type=reboot')
self.cmd.find('shutdown\?type=shutdown')