#NEWLINE# @ patch ( 'pkginfo.sdist.SDist' , new = Mock ( return_value = True ) ) #NEWLINE# def test_pkginfo_from_file_sdist( self ) : #NEWLINE# #INDENT# '\n        .pkginfo_from_file: sdist\n        ' #NEWLINE# from cheeseprism.index import IndexManager #NEWLINE# for ext in ( '.gz' , '.tgz' , '.bz2' , '.zip' ) : #NEWLINE# #INDENT# assert ( IndexManager . pkginfo_from_file ( ( 'blah.%s' % self ) ) is True )