from unittest.mock import call


def calls_from(list_args):
    return [call(*args) for args in list_args]

from mock import call


def calls_from(list_args):
    return [call(*args) for args in list_args]

Load mock module from mock package instead of unittest to support Python prior to 3.3
Load mock module from mock package instead of unittest to support Python prior to 3.3
