示例#1
0
 def test_create_engine_bad(self):
     with self.assertRaisesRegexp(TTSError, 'Unknown engine'):
         create_engine('baddy')
示例#2
0
 def test_create_engine_bad(self):
     with self.assertRaisesRegexp(TTSError, 'Unknown engine'):
         create_engine('baddy')
示例#3
0
 def test_create_engine(self):
     eng = create_engine('dummy', options={'enabled': True})
     self.assertEqual(eng.SLUG, 'dummy')
     self.assertTrue(eng.available)
     assert eng.languages
示例#4
0
 def test_create_engine(self):
     eng = create_engine('dummy', options={'enabled': True})
     self.assertEqual(eng.SLUG, 'dummy')
     self.assertTrue(eng.available)
     assert eng.languages