#NEWLINE# def test_dockerfiles( self ) : #NEWLINE# #INDENT# '\n        Directories in the ``admin/build_targets/`` sub-directory of the path\n        passed to ``available_distributions`` which themselves contain a\n        ``Dockerfile`` are considered distributions and included in the result.\n        ' #NEWLINE# root = FilePath ( self . mktemp ( ) ) #NEWLINE# build_targets = root . descendant ( [ b'admin' , b'build_targets' ] ) #NEWLINE# build_targets . makedirs ( ) #NEWLINE# build_targets . child ( b'foo' ) . setContent ( b'bar' ) #NEWLINE# greatos = build_targets . child ( b'greatos' ) #NEWLINE# greatos . makedirs ( ) #NEWLINE# greatos . child ( b'Dockerfile' ) . setContent ( b'MAINTAINER example@example.invalid\n' ) #NEWLINE# nothing = build_targets . child ( b'nothing' ) #NEWLINE# nothing . makedirs ( ) #NEWLINE# self . assertEqual ( { b'greatos' } , available_distributions ( root ) )