

def test_qisrc_add_already_exists(qisrc_action, git_server, record_messages):
    foo = git_server.create_repo('foo.git')
    qisrc_action.tmpdir.mkdir('foo')
    rc = qisrc_action('add', foo.clone_url, retcode=True)
    assert (rc != 0)
    assert record_messages.find('already exists')

dataset/ETHPy150Open aldebaran/qibuild/python/qisrc/test/test_qisrc_add.py test_qisrc_add_already_exists/original