aboutsummaryrefslogtreecommitdiffstats
path: root/sources/pyside6/tests/QtCore/qcbor_test.py
diff options
context:
space:
mode:
Diffstat (limited to 'sources/pyside6/tests/QtCore/qcbor_test.py')
-rw-r--r--sources/pyside6/tests/QtCore/qcbor_test.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/sources/pyside6/tests/QtCore/qcbor_test.py b/sources/pyside6/tests/QtCore/qcbor_test.py
index 0df9d9f95..e29921763 100644
--- a/sources/pyside6/tests/QtCore/qcbor_test.py
+++ b/sources/pyside6/tests/QtCore/qcbor_test.py
@@ -40,7 +40,7 @@ from init_paths import init_test_paths
init_test_paths(False)
from PySide6.QtCore import (QByteArray, QCborStreamReader, QCborStreamWriter,
- QCborValue)
+ QCborTag, QCborValue)
class TestCbor(unittest.TestCase):
@@ -77,6 +77,8 @@ class TestCbor(unittest.TestCase):
value = QCborValue('hello')
self.assertTrue(value.isString())
self.assertEqual(value.toString(), 'hello')
+ tag = value.tag(QCborTag(32))
+ self.assertEqual(int(tag), 32)
if __name__ == '__main__':