1
# -*- Mode:Python; indent-tabs-mode:nil; tab-width:4 -*-
3
# Copyright 2012 Canonical Ltd
5
# This file is part of duplicity.
7
# Duplicity is free software; you can redistribute it and/or modify it
8
# under the terms of the GNU General Public License as published by the
9
# Free Software Foundation; either version 2 of the License, or (at your
10
# option) any later version.
12
# Duplicity is distributed in the hope that it will be useful, but
13
# WITHOUT ANY WARRANTY; without even the implied warranty of
14
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15
# General Public License for more details.
17
# You should have received a copy of the GNU General Public License
18
# along with duplicity; if not, write to the Free Software Foundation,
19
# Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
23
from mock import patch
26
class UTF8Test(unittest.TestCase):
29
if 'duplicity' in sys.modules:
30
del(sys.modules["duplicity"])
32
@patch('gettext.install')
33
def test_module_install(self, inst_mock):
34
"""Make sure we convert po files to utf8"""
36
inst_mock.assert_called_once_with('duplicity', codeset='utf8')
38
if __name__ == "__main__":