~nataliabidart/magicicada-client/fix-travis-ubuntuone-clientdefs

« back to all changes in this revision

Viewing changes to magicicadaclient/utils/tests/test_translation.py

  • Committer: Natalia
  • Date: 2018-05-19 20:44:54 UTC
  • mto: This revision was merged to the branch mainline in revision 1445.
  • Revision ID: natalia.bidart@ubuntu.com-20180519204454-fliiqyexj67r7fp9
- Rename python package to magicicadaclient.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
# -*- coding: utf-8 -*-
2
2
#
3
3
# Copyright 2012 Canonical Ltd.
4
 
# Copyright 2015-2016 Chicharreros (https://launchpad.net/~chicharreros)
 
4
# Copyright 2015-2018 Chicharreros (https://launchpad.net/~chicharreros)
5
5
#
6
6
# This program is free software: you can redistribute it and/or modify it
7
7
# under the terms of the GNU General Public License version 3, as published
36
36
from twisted.internet import defer
37
37
from ubuntuone.devtools.testcases import TestCase, skipIfNotOS
38
38
 
39
 
from ubuntuone.utils import translation
 
39
from magicicadaclient.utils import translation
40
40
 
41
41
TEST_DOMAIN = 'test-domain'
42
42
TEST_LANG_DEFAULTS_EN_FIRST = ['en', 'pt-PT']
73
73
 
74
74
    def test_import(self):
75
75
        """Test whether import translation defines _ as a builtin."""
76
 
        import ubuntuone.utils.translation
77
 
        assert ubuntuone.utils.translation
 
76
        import magicicadaclient.utils.translation
 
77
        assert magicicadaclient.utils.translation
78
78
        self.assertFalse('_' in __builtins__)
79
79
 
80
80
    @skipIfNotOS('darwin', 'Test requires pyobjc-Cocoa')