#NEWLINE# @ responses . activate #NEWLINE# def test_message_change( api_client , mock_account , mock_messages , mock_message ) : #NEWLINE# #INDENT# message = api_client . messages . first ( ) #NEWLINE# message . star ( ) #NEWLINE# assert ( message . starred is True ) #NEWLINE# message . unstar ( ) #NEWLINE# assert ( message . starred is False ) #NEWLINE# message . mark_as_read ( ) #NEWLINE# assert message #NEWLINE# message . add_label ( 'fghj' ) #NEWLINE# msg_labels = [ l . id for l in message . labels ] #NEWLINE# assert ( 'abcd' in msg_labels ) #NEWLINE# assert ( 'fghj' in msg_labels ) #NEWLINE# message . remove_label ( 'fghj' ) #NEWLINE# msg_labels = [ l . id for l in message . labels ] #NEWLINE# assert ( 'abcd' in msg_labels ) #NEWLINE# assert ( 'fghj' not in msg_labels ) #NEWLINE# message . update_folder ( 'zxcv' ) #NEWLINE# assert ( message . folder is None )