aboutsummaryrefslogtreecommitdiffstats
path: root/tests/QtCore/qurl_test.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/QtCore/qurl_test.py')
-rw-r--r--tests/QtCore/qurl_test.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/QtCore/qurl_test.py b/tests/QtCore/qurl_test.py
index 9d0327af..595e5931 100644
--- a/tests/QtCore/qurl_test.py
+++ b/tests/QtCore/qurl_test.py
@@ -67,6 +67,10 @@ class QUrlBasicConstructor(unittest.TestCase):
self.assertEqual(url.toString(),
'ftp://john:abc123@www.google.com:8080/mail/view')
+ def testPath(self):
+ url = QUrl("http://qt-project.org/images/ban/pgs_front.jpg")
+ self.assertEqual(url.path(), "/images/ban/pgs_front.jpg")
+
# PYSIDE-345: No bindings for QUrlQuery
# class QueryItemsTest(unittest.TestCase):
# '''Test query item management'''