mock.call.login

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

1 Examples 7

Example 1

Project: mailthon Source File: test_middleware.py
    def test_logs_in_user(self, smtp):
        wrap = auth('user', 'pass')
        wrap(smtp)

        assert call.login('user', 'pass') in smtp.mock_calls