Example #1
0
def test_statement(transactions_json):
    client = FioBank('...')

    options = {'return_value': transactions_json}
    with mock.patch.object(client, '_request', **options) as stub:
        client.statement(2016, 308)
        stub.assert_called_once_with('by-id', year=2016, number=308)
Example #2
0
def test_statement(transactions_json):
    client = FioBank('...')

    options = {'return_value': transactions_json}
    with mock.patch.object(client, '_request', **options) as stub:
        client.statement(2016, 308)
        stub.assert_called_once_with('by-id', year=2016, number=308)