aboutsummaryrefslogtreecommitdiffstats
path: root/sources/pyside2/tests/QtOpenGL/qglwidget_test.py
blob: 719b7dc311d0d56d257bf7c4182ce675c55d9931 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import unittest
from PySide2.QtWidgets import *
from PySide2.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()