#NEWLINE# def test_MarketProfile_replace_social_with_proof( self ) : #NEWLINE# #INDENT# p = Profile ( self . db ) #NEWLINE# p . add_social_account ( 'FACEBOOK' , 'test_updated_username' , 'http://fb_url' ) #NEWLINE# u = p . get ( ) #NEWLINE# self . assertEqual ( 1 , len ( u . social ) ) #NEWLINE# self . assertEqual ( 0 , p . social [ 0 ] . type ) #NEWLINE# self . assertEqual ( 'test_updated_username' , u . social [ 0 ] . username ) #NEWLINE# self . assertEqual ( 'http://fb_url' , u . social [ 0 ] . proof_url )