mock.call._run

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

3 Examples 7

Example 1

Project: astara Source File: test_linux_ip_lib.py
Function: test_run
    def test_run(self):
        self.ip_cmd._run('link', 'show')
        self.ip.assert_has_calls([mock.call._run([], 'foo', ('link', 'show'))])

Example 2

Project: astara Source File: test_linux_ip_lib.py
    def test_run_with_options(self):
        self.ip_cmd._run('link', options='o')
        self.ip.assert_has_calls([mock.call._run('o', 'foo', ('link', ))])

Example 3

Project: astara Source File: test_linux_ip_lib.py
Function: assert_call
    def _assert_call(self, options, args):
        self.parent.assert_has_calls([
            mock.call._run(options, self.command, args)])