'Test valid keychain.'

def test_keychain(self, keyparser, fake_keyevent_factory):

    keyparser.handle(fake_keyevent_factory(Qt.Key_X, text='x'))
    keyparser.handle(fake_keyevent_factory(Qt.Key_B, text='b'))
    keyparser.handle(fake_keyevent_factory(Qt.Key_A, text='a'))
    keyparser.execute.assert_called_once_with('ba', keyparser.Type.chain, None)
    assert (keyparser._keystring == '')
