Hi 

Can I use ModelTest to test custom implementations of QAbstractTableModel ? 
If I use ModelTest as is, it breaks when it tries to access some of the 
QAbstractTableModel private 
methods: 

File "Y:\tests\modeltest.py", line 81, in nonDestructiveBasicTest 
self.model.hasChildren(QtCore.QModelIndex()) 
AttributeError: QAbstractTableModel.hasChildren is a private method 

How do I need to change ModelTest to ensure that it still tests the model/view 
design 
contract? 

Kind regards 
Dirk 
-- 
Dirk Wagener <[EMAIL PROTECTED]> 
(MSc. Electronic Engineering, Stell.) 

Project Engineer 
Stone Three Signal Processing (Pty.) Ltd. 
http://www.stonethree.com 
+27 21 851 3123 (phone) 
+27 21 851 3127 (fax) 

The real trick in life is to want nothing, and to succeed in getting it. 
Shantaram 
_______________________________________________
PyQt mailing list    [email protected]
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Reply via email to