#NEWLINE# @ then ( 'the resulting package contains the substituted item' ) #NEWLINE# def step_then_resulting_pkg_contains_substituted_item( context ) : #NEWLINE# #INDENT# context . cmd . assert_stderr_empty ( ) #NEWLINE# context . cmd . assert_stdout_matches ( 'substitute.txt' ) #NEWLINE# subst_sha = Manifest ( changed_pkg_path ) [ URI_SLIDE_MASTER ] #NEWLINE# expected_manifest = Manifest ( base_pkg_path ) #NEWLINE# expected_manifest [ URI_SLIDE_MASTER ] = subst_sha #NEWLINE# actual_manifest = Manifest ( scratch_pkg_path ) #NEWLINE# assertManifestsMatch ( actual_manifest , expected_manifest , 'actual' , 'expected' )