#NEWLINE# def test_add_set_401( db_conn , users_sets_table ) : #NEWLINE# #INDENT# '\n    Expect to 401 when trying to add a set but not logged in.\n    ' #NEWLINE# ( code , response ) = routes . user_sets . add_set_route ( { #NEWLINE# #INDENT# 'db_conn' : db_conn , #NEWLINE# #UNINDENT# } , 'abcd1234' , 'A1' ) #NEWLINE# assert ( code == 401 )