#NEWLINE# def test_constructor_creates_connect_token_object_with_all_attributes_in_keys_list( self ) : #NEWLINE# #INDENT# connect_token = ConnectToken ( Mock ( spec = [ ] ) , { #NEWLINE# #INDENT# 'token' : 'fake_token' , #NEWLINE# #UNINDENT# } ) #NEWLINE# self . assertTrue ( hasattr ( connect_token , 'token' ) ) #NEWLINE# self . assertTrue ( hasattr ( connect_token , 'email' ) ) #NEWLINE# self . assertTrue ( hasattr ( connect_token , 'created' ) ) #NEWLINE# self . assertTrue ( hasattr ( connect_token , 'used' ) ) #NEWLINE# self . assertTrue ( hasattr ( connect_token , 'expires' ) ) #NEWLINE# self . assertTrue ( hasattr ( connect_token , 'callback_url' ) ) #NEWLINE# self . assertTrue ( hasattr ( connect_token , 'first_name' ) ) #NEWLINE# self . assertTrue ( hasattr ( connect_token , 'last_name' ) ) #NEWLINE# self . assertTrue ( hasattr ( connect_token , 'account' ) ) #NEWLINE# self . assertTrue ( hasattr ( connect_token , 'user' ) )