Convert test_unknown

This commit is contained in:
Raphael Pierzina 2015-04-03 11:04:30 +02:00
parent 1b476d9af7
commit 6b7ae70e6d
2 changed files with 7 additions and 5 deletions

View File

@ -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?

View File

@ -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'