def test_missing(self):
    'Test a missing message from a real message bundle.'
    self.assertRaises(i18n.TranslationError, i18n.twntranslate, 'en', 'pywikibot-missing-key')
Test a missing message from a real message bundle.
def test_missing(self):
    
    self.assertRaises(i18n.TranslationError, i18n.twntranslate, 'en', 'pywikibot-missing-key')