def test_non_ascii_password(self): """Ensure we can store and test non ascii password without any UnicodeEncodeError """ user = User() try: user.set_password(u'Hé') except UnicodeEncodeError, e: self.fail(e)