コード例 #1
0
ファイル: instrument.py プロジェクト: da2ce7/opentxs-tests
    def deposit(self, depositor_nym, depositor_account):
        '''Deposit the cheque, getting a written copy from the server first if
        we don't have one.  The reason for having both the nym and
        account is that the server asks for both and we can test its
        behavior when they don't match.

        '''
        if not self._body:
            self.write()
        result = otme.deposit_cheque(self.server_id, depositor_nym._id,
                                     depositor_account._id, self._body)
        print("Deposit: %s" % result)
        assert is_message_success(result)
        # otme.accept_inbox_items(depositor_account._id, 0, "")
        return result
コード例 #2
0
    def deposit(self, depositor_nym, depositor_account):
        '''Deposit the cheque, getting a written copy from the server first if
        we don't have one.  The reason for having both the nym and
        account is that the server asks for both and we can test its
        behavior when they don't match.

        '''
        if not self._body:
            self.write()
        result = otme.deposit_cheque(self.server_id, depositor_nym._id,
                                     depositor_account._id, self._body)
        # print("Deposit: %s" % result)
        assert is_message_success(result)
        # otme.accept_inbox_items(depositor_account._id, 0, "")
        return result
コード例 #3
0
ファイル: instrument.py プロジェクト: da2ce7/opentxs-tests
 def deposit(self, depositor_nym, depositor_account):
     '''Deposit the cheque, getting a written copy from the server first if we don't have one.'''
     deposit = otme.deposit_cheque(self.server_id, depositor_nym._id, depositor_account._id,
                                   self._body)
     assert is_message_success(deposit)
     return deposit
コード例 #4
0
 def deposit(self, depositor_nym, depositor_account):
     '''Deposit the cheque, getting a written copy from the server first if we don't have one.'''
     deposit = otme.deposit_cheque(self.server_id, depositor_nym._id,
                                   depositor_account._id, self._body)
     assert is_message_success(deposit)
     return deposit