'Test with a simulated mac.'

def test_mac(self, monkeypatch, fake_keyevent_factory):

    monkeypatch.setattr(sys, 'platform', 'darwin')
    evt = fake_keyevent_factory(key=Qt.Key_A, modifiers=Qt.ControlModifier)
    assert (utils.keyevent_to_string(evt) == 'Meta+A')
