Пример #1
0
    def test_user_password_update(self):
        """
        Test if it update a user's password (keystone user-password-update)
        """
        self.assertDictEqual(keystone.user_password_update(),
                             {"Error": "Unable to resolve user id"})

        self.assertEqual(keystone.user_password_update("nova"),
                         "Password updated for user ID nova")
Пример #2
0
    def test_user_password_update(self, mock):
        '''
        Test if it update a user's password (keystone user-password-update)
        '''
        self.assertDictEqual(keystone.user_password_update(),
                             {'Error': 'Unable to resolve user id'})

        self.assertEqual(keystone.user_password_update('nova'),
                         'Password updated for user ID nova')
Пример #3
0
    def test_user_password_update(self, mock):
        '''
        Test if it update a user's password (keystone user-password-update)
        '''
        self.assertDictEqual(keystone.user_password_update(),
                             {'Error': 'Unable to resolve user id'})

        self.assertEqual(keystone.user_password_update('nova'),
                         'Password updated for user ID nova')