def test_user_delete(self): """ Test if it delete a user (keystone user-delete) """ self.assertDictEqual(keystone.user_delete(), {"Error": "Unable to resolve user id"}) self.assertEqual(keystone.user_delete("nova"), "User ID nova deleted")
def test_user_delete(self, mock): ''' Test if it delete a user (keystone user-delete) ''' self.assertDictEqual(keystone.user_delete(), {'Error': 'Unable to resolve user id'}) self.assertEqual(keystone.user_delete('nova'), 'User ID nova deleted')
def test_user_delete(self, mock): ''' Test if it delete a user (keystone user-delete) ''' self.assertDictEqual(keystone.user_delete(), {'Error': 'Unable to resolve user id'}) self.assertEqual(keystone.user_delete('nova'), 'User ID nova deleted')