#NEWLINE# def test_remove_set( db_conn , session , sets_table , users_sets_table ) : #NEWLINE# #INDENT# "\n    Expect to remove a set from the user's list.\n    " #NEWLINE# sets_table . insert ( { #NEWLINE# #INDENT# 'entity_id' : 'A1' , #NEWLINE# 'name' : 'A' , #NEWLINE# 'body' : 'Apple' , #NEWLINE# 'created' : r . now ( ) , #NEWLINE# 'modified' : r . now ( ) , #NEWLINE# 'status' : 'accepted' , #NEWLINE# #UNINDENT# } ) . run ( db_conn ) #NEWLINE# users_sets_table . insert ( { #NEWLINE# #INDENT# 'user_id' : 'abcd1234' , #NEWLINE# 'set_ids' : [ 'A1' ] , #NEWLINE# #UNINDENT# } ) . run ( db_conn ) #NEWLINE# request = { #NEWLINE# #INDENT# 'cookies' : { #NEWLINE# #INDENT# 'session_id' : session , #NEWLINE# #UNINDENT# } , #NEWLINE# 'db_conn' : db_conn , #NEWLINE# #UNINDENT# } #NEWLINE# ( code , response ) = routes . user_sets . remove_set_route ( request , 'abcd1234' , 'A1' ) #NEWLINE# assert ( code == 200 )