Here are the examples of the python api mock.call.eval taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.
1 Examples
3
Example 1
@pytest.fixture
def editor(vim):
mockeditor = Editor(vim)
assert vim.mock_calls == [call.eval("has('nvim')")]
vim.reset_mock() # Clear above constructor vim calls from call list
return mockeditor