Convert test_unknown
This commit is contained in:
parent
1b476d9af7
commit
6b7ae70e6d
@ -35,11 +35,6 @@ class QEnumKeyTests(unittest.TestCase):
|
||||
|
||||
"""Tests for qenum_key."""
|
||||
|
||||
def test_unknown(self):
|
||||
"""Test passing an unknown value."""
|
||||
key = debug.qenum_key(QFrame, 0x1337, klass=QFrame.Shadow)
|
||||
self.assertEqual(key, '0x1337')
|
||||
|
||||
def test_reconverted(self):
|
||||
"""Test passing a flag value which was re-converted to an enum."""
|
||||
# FIXME maybe this should return the right thing anyways?
|
||||
|
@ -67,3 +67,10 @@ def test_int():
|
||||
|
||||
key = debug.qenum_key(QFrame, 0x0030, klass=QFrame.Shadow)
|
||||
assert key == 'Sunken'
|
||||
|
||||
|
||||
def test_unknown():
|
||||
"""Test passing an unknown value."""
|
||||
|
||||
key = debug.qenum_key(QFrame, 0x1337, klass=QFrame.Shadow)
|
||||
assert key == '0x1337'
|
||||
|
Loading…
Reference in New Issue
Block a user