def test_missing_toolkit(self): # test that we get an error with an undefined toolkit with self.assertRaises(RuntimeError): import_toolkit("nosuchtoolkit")
def test_import_null_toolkit(self): toolkit = import_toolkit('null') self.assertEqual(toolkit.package, 'pyface') self.assertEqual(toolkit.toolkit, 'null')
def test_import_null_toolkit(self): toolkit = import_toolkit("null") self.assertEqual(toolkit.package, "pyface") self.assertEqual(toolkit.toolkit, "null")
def test_missing_toolkit(self): # test that we get an error with an undefined toolkit with self.assertRaises(RuntimeError): import_toolkit('nosuchtoolkit')