I have the following imports in my unittest code:
from PyQt4.QtCore import * from PyQt4.QtGui import * from PyQt4 import QtCore, QtGui, QtTest
When I run my unit test from the command line I get the error:
ImportError: cannot import name QtTest
QtCore and QtGui appear to load just fine. Can anyone help me figure out why QtTest is different?
I'm running on a Mac OS X 10.10.5. QGIS 2.8.3. Python 2.7.10. I believe or at least hope is the Python bundled with QGIS. PyQt 4.11.3.