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