#NEWLINE# def test_fxa_data_gets_set( self ) : #NEWLINE# #INDENT# assert ( len ( get_messages ( self . request ) ) == 0 ) #NEWLINE# self . user . update ( fxa_id = None ) #NEWLINE# views . login_user ( self . request , user . user , self . identity ) #NEWLINE# user = self . user . reload ( ) #NEWLINE# assert ( user . fxa_id == '9001' ) #NEWLINE# assert ( not user . has_usable_password ( ) ) #NEWLINE# assert ( len ( get_messages ( self . request ) ) == 1 )