<s> import routes . next <EOL> from models . user import User <EOL> def test_seq_next ( db_conn , session ) : <EOL> """<STR_LIT>""" <EOL> request = { <EOL> '<STR_LIT>' : { '<STR_LIT>' : session } , <EOL> '<STR_LIT>' : db_conn , <EOL> } <EOL> user = User . get ( db_conn , id = '<STR_LIT>' ) <EOL> user . set_learning_context ( next = { <EOL> '<STR_LIT>' : '<STR_LIT>' , <EOL> '<STR_LIT:path>' : '<STR_LIT>' <EOL> } ) <EOL> code , response = routes . next . next_route ( request ) <EOL> assert code == <NUM_LIT:200> <EOL> assert response [ '<STR_LIT>' ] [ '<STR_LIT>' ] == '<STR_LIT>' <EOL> user . set_learning_context ( next = None ) <EOL> def test_seq_next_default ( db_conn , session ) : <EOL> """<STR_LIT>""" <EOL> request = { <EOL> '<STR_LIT>' : { '<STR_LIT>' : session } , <EOL> '<STR_LIT>' : db_conn , <EOL> } <EOL> code , response = routes . next . next_route ( request ) <EOL> assert code == <NUM_LIT:200> <EOL> assert response == { <EOL> '<STR_LIT>' : { <EOL> '<STR_LIT>' : '<STR_LIT:GET>' , <EOL> '<STR_LIT:path>' : '<STR_LIT>' , <EOL> } <EOL> } </s>
