1
0
Fork 0
mirror of https://github.com/Athemis/PyDSF.git synced 2025-04-05 06:36:04 +00:00
pyDSF/pyqtgraph/dockarea/tests/test_dock.py

16 lines
379 B
Python

# -*- coding: utf-8 -*-
#import sip
#sip.setapi('QString', 1)
import pyqtgraph as pg
pg.mkQApp()
import pyqtgraph.dockarea as da
def test_dock():
name = pg.asUnicode("évènts_zàhéér")
dock = da.Dock(name=name)
# make sure unicode names work correctly
assert dock.name() == name
# no surprises in return type.
assert type(dock.name()) == type(name)