#NEWLINE# def testUseFeatures( self ) : #NEWLINE# #INDENT# dist = self . dist #NEWLINE# self . assertEqual ( dist . with_foo , 1 ) #NEWLINE# self . assertEqual ( dist . with_bar , 0 ) #NEWLINE# self . assertEqual ( dist . with_baz , 1 ) #NEWLINE# self . failIf ( ( 'bar_et' in dist . py_modules ) ) #NEWLINE# self . failIf ( ( 'pkg.bar' in dist . packages ) ) #NEWLINE# self . failUnless ( ( 'pkg.baz' in self . packages ) ) #NEWLINE# self . failUnless ( ( 'scripts/baz_it' in dist . scripts ) ) #NEWLINE# self . failUnless ( ( ( 'libfoo' , 'foo/foofoo.c' ) in dist . libraries ) ) #NEWLINE# self . assertEqual ( dist . ext_modules , [ ] ) #NEWLINE# self . assertEqual ( dist . require_features , [ self . req ] ) #NEWLINE# self . assertRaises ( DistutilsOptionError , dist . include_feature , 'bar' )