#NEWLINE# def test_log_in_user( users_table , db_conn ) : #NEWLINE# #INDENT# '\n    Expect to log in as a user.\n    ' #NEWLINE# create_user_in_db ( users_table , user ) #NEWLINE# user = User . get ( db_conn , id = 'abcd1234' ) #NEWLINE# token = log_in_user ( user ) #NEWLINE# assert token #NEWLINE# assert ( redis . get ( token ) . decode ( ) == 'abcd1234' )