#NEWLINE# def test_user_delete( self ) : #NEWLINE# #INDENT# req = webob . Request . blank ( '/v1.0/users/id1' ) #NEWLINE# res = req . get_response ( fakes . wsgi_app ( ) ) #NEWLINE# res_dict = json . loads ( res . body ) #NEWLINE# self . assertEqual ( res_dict [ 'user' ] [ 'id' ] , 'id1' ) #NEWLINE# self . assertEqual ( res . status_int , 200 ) #NEWLINE# req = webob . Request . blank ( '/v1.0/users/id1' ) #NEWLINE# req . method = 'DELETE' #NEWLINE# res = req . get_response ( fakes . wsgi_app ( ) ) #NEWLINE# self . assertTrue ( ( 'id1' not in [ u . id for u in fakes . FakeAuthManager . auth_data ] ) ) #NEWLINE# self . assertEqual ( res . status_int , 200 ) #NEWLINE# req = webob . Request . blank ( '/v1.0/users/id1' ) #NEWLINE# res = req . get_response ( fakes . wsgi_app ( ) ) #NEWLINE# res_dict = json . loads ( res . body ) #NEWLINE# self . assertEqual ( res . status_int , 404 )