blob: 46d7816ca85d050f279c97f08c655340f87f94ff (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
import unittest
from PySide.QtWidgets 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()
|