~brian.curtin/ubuntu-sso-client/httpserver-port

« back to all changes in this revision

Viewing changes to ubuntu_sso/utils/tests/test_ui.py

  • Committer: Brian Curtin
  • Date: 2012-09-19 20:54:46 UTC
  • mfrom: (996.1.6 ubuntu-sso-client)
  • Revision ID: brian.curtin@canonical.com-20120919205446-4tjj074bql4kwe5m
Merge trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
36
36
                                 is_correct_email)
37
37
 
38
38
 
 
39
class GettextTestCase(TestCase):
 
40
    """Test that we don't override builtins with gettext."""
 
41
 
 
42
    def test_import(self):
 
43
        """Test whether importing ui module defines _ as a builtin."""
 
44
        # This module is already imported above, but just to make sure, since
 
45
        # top imports may change over time.
 
46
        import ubuntu_sso.utils.ui  # pylint: disable=W0612
 
47
        with self.assertRaises(NameError):
 
48
            _  # pylint: disable=W0104,E0602
 
49
 
 
50
 
39
51
class GetPasswordStrengTestCase(TestCase):
40
 
    """Test the function that returns the strengh of a password."""
 
52
    """Test the function that returns the strength of a password."""
41
53
 
42
54
    def test_too_small_password(self):
43
55
        """Test the points given to a very small password."""