#NEWLINE# def test_check_root_cmake_no_project( tmpdir ) : #NEWLINE# #INDENT# cmake_list = tmpdir . join ( 'CMakeLists.txt' ) #NEWLINE# cmake_list . write ( '\ncmake_minimum_required(VERSION 2.8)\nfind_package(qibuild)\n' ) #NEWLINE# with pytest . raises ( qibuild . cmake . IncorrectCMakeLists ) as e : #NEWLINE# #INDENT# qibuild . cmake . check_root_cmake_list ( e . strpath ) #NEWLINE# #UNINDENT# assert ( 'Missing call to project()' in e . value . message )