test_qtxmlpatterns.py 1.1 KB

12345678910111213141516171819202122232425
  1. from __future__ import absolute_import
  2. import pytest
  3. from qtpy import PYSIDE2, PYSIDE
  4. def test_qtxmlpatterns():
  5. """Test the qtpy.QtXmlPatterns namespace"""
  6. from qtpy import QtXmlPatterns
  7. assert QtXmlPatterns.QAbstractMessageHandler is not None
  8. assert QtXmlPatterns.QAbstractUriResolver is not None
  9. assert QtXmlPatterns.QAbstractXmlNodeModel is not None
  10. assert QtXmlPatterns.QAbstractXmlReceiver is not None
  11. if not PYSIDE2 and not PYSIDE:
  12. assert QtXmlPatterns.QSimpleXmlNodeModel is not None
  13. assert QtXmlPatterns.QSourceLocation is not None
  14. assert QtXmlPatterns.QXmlFormatter is not None
  15. assert QtXmlPatterns.QXmlItem is not None
  16. assert QtXmlPatterns.QXmlName is not None
  17. assert QtXmlPatterns.QXmlNamePool is not None
  18. assert QtXmlPatterns.QXmlNodeModelIndex is not None
  19. assert QtXmlPatterns.QXmlQuery is not None
  20. assert QtXmlPatterns.QXmlResultItems is not None
  21. assert QtXmlPatterns.QXmlSchema is not None
  22. assert QtXmlPatterns.QXmlSchemaValidator is not None
  23. assert QtXmlPatterns.QXmlSerializer is not None