summaryrefslogtreecommitdiff
path: root/tests/test_qt_environment.py
diff options
context:
space:
mode:
authorKali Kaneko <kali@leap.se>2013-07-02 22:29:32 +0900
committerKali Kaneko <kali@leap.se>2013-07-02 22:29:32 +0900
commit1d30e2580592ef905d9b21c475459da1e40b1cd6 (patch)
tree6ec48c6b5234da55ecc91ad3c6235fb20b61315c /tests/test_qt_environment.py
parent81dc8ebe9ef46c0fafa75cba5c4959bb822da686 (diff)
parent5b975799ce9b7a6e0a88be4bcb48bdfb90800bb3 (diff)
Merge branch 'master' of ssh://leap.se/leap_client
Diffstat (limited to 'tests/test_qt_environment.py')
-rw-r--r--tests/test_qt_environment.py43
1 files changed, 0 insertions, 43 deletions
diff --git a/tests/test_qt_environment.py b/tests/test_qt_environment.py
deleted file mode 100644
index e90d527f..00000000
--- a/tests/test_qt_environment.py
+++ /dev/null
@@ -1,43 +0,0 @@
-import sys
-import unittest
-
-import sip
-#sip.setapi('QVariant', 2)
-
-from PyQt4 import QtGui
-
-
-class TestWin(QtGui.QMainWindow):
- """
- a _really_ minimal test window,
- with only one tray icon
- """
- def __init__(self):
- super(TestWin, self).__init__()
- self.trayIcon = QtGui.QSystemTrayIcon(self)
-
-
-class QtEnvironTest(unittest.TestCase):
- """
- Test we're running a proper qt environment
- """
-
- def setUp(self):
- self.app = QtGui.QApplication(sys.argv)
- self.win = TestWin()
-
- def tearDown(self):
- del(self.win)
- del(self.app)
-
- def test_system_has_systray(self):
- """
- does system have systray available?
- """
- self.assertEqual(
- self.win.trayIcon.isSystemTrayAvailable(),
- True)
-
-
-if __name__ == "__main__":
- unittest.main()