def test_sets_project_name_when_not_defined(doc_worktree):
    foo_sphinx = doc_worktree.create_sphinx_project("foo")
    # pylint: disable-msg=E1101
    foo_path = py.path.local(foo_sphinx.path)
    conf_py = foo_path.join("source", "conf.py").ensure(file=True)
    foo_sphinx.configure()
    conf_py = foo_path.join("build-doc", "conf.py")
    assert conf_py.read() in 'project = "foo"'
dataset/ETHPy150Open aldebaran/qibuild/python/qidoc/test/test_sphinx.py/test_sets_project_name_when_not_defined/swapped operands of `in`