#NEWLINE# def test_no_worktree_pure_pml( tmpdir , monkeypatch ) : #NEWLINE# #INDENT# project = tmpdir . mkdir ( 'project' ) #NEWLINE# project . ensure ( 'behavior_1' , 'behavior.xar' , file = True ) #NEWLINE# manifest_path = project . join ( 'manifest.xml' ) #NEWLINE# manifest_path . write ( '\n<package version="0.1" uuid="fooproject">\n  <names>\n    <name lang="en_US">fooproject</name>\n  </names>\n  <supportedLanguages>\n    <language>en_US</language>\n  </supportedLanguages>\n  <requirements>\n    <naoqiRequirement minVersion="1.22"/>\n    <robotRequirement model="NAO"/>\n  </requirements>\n</package>\n' ) #NEWLINE# pml_path = project . join ( 'project.pml' ) #NEWLINE# pml_path . write ( '\n<Package name="project">\n\n    <BehaviorDescriptions>\n        <BehaviorDescription name="behavior" src="behavior_1" xar="behavior.xar" />\n    </BehaviorDescriptions>\n\n</Package>\n' ) #NEWLINE# monkeypatch . chdir ( tmpdir ) #NEWLINE# package = qisys . script . run_action ( 'qipkg.actions.make_package' , [ pml_path . strpath ] ) #NEWLINE# dest = tmpdir . mkdir ( 'dest' ) #NEWLINE# monkeypatch . chdir ( dest ) #NEWLINE# qisys . script . run_action ( 'qipkg.actions.extract_package' , [ package ] ) #NEWLINE# assert dest . join ( 'fooproject-0.1' , 'manifest.xml' ) . check ( file = True ) #NEWLINE# assert dest . join ( 'fooproject-0.1' , 'behavior_1' , 'behavior.xar' ) . check ( file = True )