def it_calls_apt_get_upgrade_without_prompting_for_confirmation(sudo_mock): upgrade(True) expected = [call('apt-get update'), call('apt-get upgrade -y')] assert sudo_mock.call_args_list == expected
def it_calls_apt_get_upgrade_without_prompting_for_confirmation(sudo_mock): upgrade(True) expected = [call("apt-get update"), call("apt-get upgrade -y")] assert sudo_mock.call_args_list == expected
def it_calls_apt_get_upgrade(sudo_mock): upgrade() expected = [call('apt-get update'), call('apt-get upgrade')] assert sudo_mock.call_args_list == expected
def it_calls_apt_get_upgrade(sudo_mock): upgrade() expected = [call("apt-get update"), call("apt-get upgrade")] assert sudo_mock.call_args_list == expected