Exemplo n.º 1
0
 def is_available(cls):
     return diagnose.check_python_import('pocketsphinx')
Exemplo n.º 2
0
 def testPythonImportCheck(self):
     # This a python stdlib module that definitely exists
     self.assertTrue(diagnose.check_python_import("os"))
     # I sincerly hope nobody will ever create a package with that name
     self.assertFalse(diagnose.check_python_import("nonexistant_package"))
Exemplo n.º 3
0
def testPythonImportCheck():
    # This a python stdlib module that definitely exists
    assert diagnose.check_python_import("os")
    # I sincerly hope nobody will ever create a package with that name
    assert not diagnose.check_python_import("nonexistant_package")
Exemplo n.º 4
0
 def is_available(cls):
     return (super(cls, cls).is_available() and
             diagnose.check_python_import('pyvona') and
             diagnose.check_network_connection())
Exemplo n.º 5
0
 def is_available(cls):
     return (super(AbstractMp3TTSEngine, cls).is_available() and
             diagnose.check_python_import('pydub'))
Exemplo n.º 6
0
 def is_available(cls):
     return diagnose.check_python_import('pocketsphinx')
Exemplo n.º 7
0
 def is_available(cls):
     return (super(AbstractMp3TTSEngine, cls).is_available()
             and diagnose.check_python_import('mad'))