#NEWLINE# def test_steps( self ) : #NEWLINE# #INDENT# '\n        ``build_in_docker`` returns a ``BuildSequence`` comprising\n        ``DockerBuild`` and ``DockerRun`` instances.\n        ' #NEWLINE# supplied_distribution = 'Foo' #NEWLINE# expected_tag = ( 'clusterhq/build-%s' % ( supplied_distribution , ) ) #NEWLINE# supplied_top_level = FilePath ( self . mktemp ( ) ) #NEWLINE# expected_build_directory = supplied_top_level . descendant ( [ 'admin' , 'build_targets' , supplied_distribution ] ) #NEWLINE# expected_build_directory . makedirs ( ) #NEWLINE# expected_build_directory . sibling ( 'requirements.txt' ) . setContent ( '' ) #NEWLINE# supplied_destination_path = FilePath ( '/baz/qux' ) #NEWLINE# expected_volumes = { #NEWLINE# #INDENT# FilePath ( '/output' ) : supplied_destination_path , #NEWLINE# FilePath ( '/flocker' ) : supplied_top_level , #NEWLINE# #UNINDENT# } #NEWLINE# expected_package_uri = 'http://www.example.com/foo/bar/whl' #NEWLINE# assert_equal_steps ( test_case = self , expected = BuildSequence ( steps = [ DockerBuild ( tag = expected_tag , build_directory = expected_build_directory ) , DockerRun ( tag = expected_tag , volumes = expected_volumes , command = [ expected_package_uri ] ) ] ) , actual = build_in_docker ( destination_path = expected_build_directory , distribution = supplied_distribution , top_level = supplied_top_level , package_uri = expected_package_uri ) )