def test_create_engine_bad(self): with self.assertRaisesRegexp(TTSError, 'Unknown engine'): create_engine('baddy')
def test_create_engine(self): eng = create_engine('dummy', options={'enabled': True}) self.assertEqual(eng.SLUG, 'dummy') self.assertTrue(eng.available) assert eng.languages