Example #1
0
    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
Example #2
0
    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
Example #3
0
    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
Example #4
0
    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