#NEWLINE# def test_login_logout( self ) : #NEWLINE# #INDENT# 'Make sure login and logout works' #NEWLINE# rv = self . login ( flaskr . app . config [ 'USERNAME' ] , flaskr . app . config [ 'PASSWORD' ] ) #NEWLINE# assert ( 'You were logged in' in self . data ) #NEWLINE# rv = self . logout ( ) #NEWLINE# assert ( 'You were logged out' in rv . data ) #NEWLINE# rv = self . login ( ( flaskr . app . config [ 'USERNAME' ] + 'x' ) , flaskr . app . config [ 'PASSWORD' ] ) #NEWLINE# assert ( 'Invalid username' in rv . data ) #NEWLINE# rv = self . login ( flaskr . app . config [ 'USERNAME' ] , ( flaskr . app . config [ 'PASSWORD' ] + 'x' ) ) #NEWLINE# assert ( 'Invalid password' in rv . data )