Convert test_add_base

This commit is contained in:
Raphael Pierzina 2015-04-03 18:33:22 +02:00
parent 6482025399
commit 75e927f79e
2 changed files with 8 additions and 6 deletions

View File

@ -49,3 +49,11 @@ def test_combined():
flags = debug.qflags_key(Qt, Qt.AlignCenter)
assert flags == 'AlignHCenter|AlignVCenter'
@fixme
def test_add_base():
"""Test with add_base=True."""
flags = debug.qflags_key(Qt, Qt.AlignTop, add_base=True)
assert flags == 'Qt.AlignTop'

View File

@ -37,12 +37,6 @@ class QFlagsKeyTests(unittest.TestCase):
# https://github.com/The-Compiler/qutebrowser/issues/42
@unittest.skip('FIXME')
def test_add_base(self):
"""Test with add_base=True."""
flags = debug.qflags_key(Qt, Qt.AlignTop, add_base=True)
self.assertEqual(flags, 'Qt.AlignTop')
def test_int_noklass(self):
"""Test passing an int without explicit klass given."""
with self.assertRaises(TypeError):