cryptonas/plugins/shutdown/unittests.py

12 lines
280 B
Python
Raw Normal View History

2006-11-06 17:05:00 +01:00
import WebInterfaceTestClass
class unittests(WebInterfaceTestClass.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')