@classmethod
def setUpClass(cls):
    if (not isinstance(cls.message_package, basestring)):
        raise TypeError(('%s.message_package must be a package name' % cls.__name__))
    cls.orig_messages_package_name = i18n._messages_package_name
    i18n.set_messages_package(cls.message_package)
    has_messages = i18n.messages_available()
    i18n._messages_package_name = cls.orig_messages_package_name
    if (not has_messages):
        raise unittest.SkipTest(("i18n messages package '%s' not available." % cls.message_package))
    super(TWNTestCaseBase, cls).setUpClass()
@classmethod
def setUpClass(cls):
    if (not isinstance(cls.message_package, basestring)):
        raise TypeError(('%s.message_package must be a package name' % cls.__name__))
    cls.orig_messages_package_name = i18n._messages_package_name
    i18n.set_messages_package(cls.message_package)
    has_messages = i18n.messages_available()
    i18n._messages_package_name = cls.orig_messages_package_name
    if (not has_messages):
        raise unittest.SkipTest(("i18n messages package '%s' not available." % cls.message_package))
    super(TWNTestCaseBase, cls).setUpClass()