lars
80337411ae
svn:keywords set fixed: shutdown - delay reboot/poweroff by some seconds to finish the web page before added: format_fs - show link to umount in case of active device added: new plugin "language_selection" fixed: recently introduced syntax error in 'network' added: "volume_props" mentions encryption support via "format_fs" (including link) updated: plugin-interface.txt fixed: broken test case for date plugin (caused by twill, I guess) added: "partition" plugin - better handling of config partition
28 lines
578 B
Python
28 lines
578 B
Python
import WebInterfaceTestClass
|
|
|
|
## this user may not be removed
|
|
from user_manager import RESERVED_USERS
|
|
|
|
class unittests(WebInterfaceTestClass.WebInterfaceTestClass):
|
|
|
|
def test_read_users(self):
|
|
cur_users = self._getUsers()
|
|
# self.cmd.showforms()
|
|
|
|
|
|
def _addUser(self, user, password):
|
|
self._gotPage()
|
|
## TODO: finish
|
|
|
|
|
|
def _gotoPage(self):
|
|
url = self.URL + "user_manager"
|
|
self.register_auth(url)
|
|
self.cmd.go(url)
|
|
|
|
|
|
def _getUsers(self):
|
|
self._gotoPage()
|
|
self.cmd.find("Data.Status.Plugins.user_manager=([\w/]+)")
|
|
return self.locals["__match__"].split("/")
|