Beispiel #1
0
 def test_user_change_password(self):
     inst = self.instance
     mgr = inst.manager
     password = utils.random_unicode()
     user = CloudDatabaseUser(mgr, info={"name": "fake"})
     mgr.change_user_password = Mock()
     user.change_password(password)
     mgr.change_user_password.assert_called_once_with(user, password)
Beispiel #2
0
 def test_user_change_password(self):
     inst = self.instance
     mgr = inst.manager
     password = utils.random_unicode()
     user = CloudDatabaseUser(mgr, info={"name": "fake"})
     mgr.change_user_password = Mock()
     user.change_password(password)
     mgr.change_user_password.assert_called_once_with(user, password)