#NEWLINE# def test_get_set_license( tmpdir ) : #NEWLINE# #INDENT# boost_path = tmpdir . mkdir ( 'boost' ) #NEWLINE# boost_path . join ( 'package.xml' ) . write ( '\n<package name="boost" version="1.58" />\n' ) #NEWLINE# package = qitoolchain . qipackage . QiPackage ( 'boost' , path = package2 . strpath ) #NEWLINE# assert ( package . license is None ) #NEWLINE# package . license = 'BSD' #NEWLINE# package2 = qitoolchain . qipackage . QiPackage ( 'boost' , path = boost_path . strpath ) #NEWLINE# assert ( package2 . license == 'BSD' )