#NEWLINE# def test_sources_glob( self ) : #NEWLINE# #INDENT# bento_info = 'Name: foo\n\nLibrary:\n    Extension: _foo\n        Sources: src/foo.c, src/bar.c\n' #NEWLINE# create_fake_package_from_bento_info ( self . top_node , bento_info ) #NEWLINE# bento_info = 'Name: foo\n\nLibrary:\n    Extension: _foo\n        Sources: src/*.c\n' #NEWLINE# pkg = PackageDescription . from_string ( bento_info ) #NEWLINE# node_pkg = NodeRepresentation ( self . top_node , self . top_node ) #NEWLINE# node_pkg . update_package ( bento_info ) #NEWLINE# extensions = dict ( node_pkg . iter_category ( 'extensions' ) ) #NEWLINE# self . assertEqual ( len ( extensions ) , 1 ) #NEWLINE# self . assertEqual ( len ( extensions [ '_foo' ] . nodes ) , 2 )