'Test with key and modifier pressed.'

def test_key_and_modifier(self, fake_keyevent_factory):

    evt = fake_keyevent_factory(key=Qt.Key_A, modifiers=Qt.ControlModifier)
    expected = ('Meta+A' if (sys.platform == 'darwin') else 'Ctrl+A')
    assert (utils.keyevent_to_string(evt) == expected)
