aboutsummaryrefslogtreecommitdiffstats
path: root/tests/QtGui/x11_symbols_test.py
blob: 6a38eed59a119c661244e34c706b0588b8035ebb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24

''' Test the presence of X11 symbols in QtGui'''

import unittest

from PySide.QtGui import *

class X11Test(unittest.TestCase):

    def test(self):
        qpixmapFuncs = dir(QPixmap)
        self.assert_('handle' in qpixmapFuncs)
        self.assert_('x11Info' in qpixmapFuncs)
        self.assert_('x11PictureHandle' in qpixmapFuncs)
        self.assert_('x11SetDefaultScreen' in qpixmapFuncs)

    def testX11Functions(self):
        qx11infoFuncs = dir(QX11Info)
        self.assert_('display' in qx11infoFuncs)
        self.assert_('appVisual' in qx11infoFuncs)
        self.assert_('visual' in qx11infoFuncs)

if __name__ == '__main__':
    unittest.main()