def test_print_only_should_not_link(link_localtime_mock, get_timezone_for_ip_mock): get_timezone_for_ip_mock.return_value = 'Fake/Timezone' tzupdate.run(['-p']) assert_false(link_localtime_mock.called)
def test_end_to_end_default_success(link_localtime_mock, get_timezone_for_ip_mock): get_timezone_for_ip_mock.return_value = 'Fake/Timezone' tzupdate.run([]) assert_true(link_localtime_mock.called)