#NEWLINE# @ util . use_cassette #NEWLINE# def test_mailbox_sync_integration( T ) : #NEWLINE# #INDENT# user = User ( ) #NEWLINE# T . factory . okcupyd_user ( user ) #NEWLINE# user . quickmatch ( ) . message ( 'test... sorry.' ) #NEWLINE# Sync ( user ) . all ( ) #NEWLINE# user_model = model . User . find ( user . profile . id , id_key = 'okc_id' ) #NEWLINE# messages = model . Message . query ( ( model . Message . sender_id == user_model . id ) ) #NEWLINE# Sync ( user ) . all ( ) #NEWLINE# assert ( len ( messages ) == len ( model . Message . query ( ( model . Message . sender_id == user . id ) ) ) )