aboutsummaryrefslogtreecommitdiffstats
path: root/tests/QtOpenGL/qglwidget_test.py
blob: 515b8f52b6736efd89546d0a1807ba72300d3e8c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import unittest
from PySide.QtGui import *
from PySide.QtOpenGL import *

class TestQGLWidget (unittest.TestCase):
    def testIt(self):
        """Just test if the bindTexture(*, GLenum, GLint) methods overloads exists"""
        app = QApplication([])
        img = QImage()
        w = QGLWidget()
        a = w.bindTexture(img, 0, 0) # ok if it throws nothing.. :-)





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