cryptonas-branches/pythonrewrite/plugins/user_manager/unittests.py
lars c35e204a7b added some basic unittests
changed warning/success message system to a new style
unified design of "hints" in form interfaces
fixed small bugs in "network" and "partition" plugin interfaces
"partition" and "disks" plugins: show blockdevice size during device selection
german translation for "disks" plugin added
2006-11-02 14:01:09 +00:00

27 lines
586 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 + "plugins/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("/")