#NEWLINE# def test_user_has_not_read_agreement( self ) : #NEWLINE# #INDENT# self . user . update ( read_dev_agreement = None ) #NEWLINE# with self . assertRaises ( AuthenticationFailed ) as ctx : #NEWLINE# #INDENT# self . auth . authenticate ( self . request ( self . _create_token ( ) ) ) #NEWLINE# #UNINDENT# assert ( self . exception . detail == 'User has not read developer agreement.' )