mock.call.append

Here are the examples of the python api mock.call.append taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

1 Examples 7

Example 1

Project: ensime-vim Source File: test_editor.py
Function: test_append
def test_append(editor, vim):
    editor.append('new')
    editor.append('new', sentinel.lineno)

    buffer = vim.current.buffer
    assert buffer.mock_calls == [
        call.append('new'),
        call.append('new', sentinel.lineno),
    ]