2006-10-26 14:25:12 +02:00
|
|
|
import WebInterfaceTestClass
|
|
|
|
|
|
|
|
## this user may not be removed
|
|
|
|
from user_manager import RESERVED_USERS
|
|
|
|
|
|
|
|
class unittests(WebInterfaceTestClass.WebInterfaceTestClass):
|
|
|
|
|
|
|
|
def test_read_users(self):
|
2006-11-02 15:01:09 +01:00
|
|
|
cur_users = self._getUsers()
|
|
|
|
# self.cmd.showforms()
|
2006-10-26 14:25:12 +02:00
|
|
|
|
|
|
|
|
|
|
|
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("/")
|