qtutils: try to support older PyQt versions
[git-cola.git] / test / qtutils_test.py
blob15d61b7ef35556502ea9f5dced68ea39baaf9aad
1 #!/usr/bin/env python
2 import unittest
4 from PyQt4 import QtGui
6 from cola import qtutils
7 from test.helper import run_unittest
10 class QtUtilsTestCase(unittest.TestCase):
12 def setUp(self):
13 self.app = QtGui.QApplication(['dummy_string'])
14 super(QtUtilsTestCase, self).setUp()
16 def tearDown(self):
17 super(QtUtilsTestCase, self).tearDown()
19 def test_copy_path(self):
20 # This doesn't do much except make sure it doesn't throw and exception
21 qtutils.copy_path('dummy_string')
24 def test_suite():
25 return unittest.makeSuite(QtUtilsTestCase)
27 if __name__ == "__main__":
28 run_unittest(test_suite())