#NEWLINE# def testNestedManifests( self ) : #NEWLINE# #INDENT# self . index . src = '../templates/examples/nested/manifest.json' #NEWLINE# self . index . import_manifest ( ) #NEWLINE# self . assertEqual ( dps . index . manifest . name , 'example' ) #NEWLINE# self . assertEqual ( self . index . manifest . version , '1.0' ) #NEWLINE# self . assertEqual ( self . index . manifest . build . dir , 'lib' ) #NEWLINE# dps = self . index . dependencies #NEWLINE# self . assertEqual ( dps [ 0 ] . working_dir , '../templates/examples/nested/lib' ) #NEWLINE# self . assertEqual ( dps [ 1 ] . working_dir , '../templates/examples/nested/lib/foo' ) #NEWLINE# self . assertEqual ( len ( dps [ 1 ] . dependencies ) , 1 ) #NEWLINE# self . assertEqual ( dps [ 1 ] . dependencies [ 0 ] . filename , 'foo.js' ) #NEWLINE# self . assertEqual ( dps [ 1 ] . dependencies [ 0 ] . working_dir , '../templates/examples/nested/lib/foo' ) #NEWLINE# self . assertEqual ( dps [ 2 ] . working_dir , '../templates/examples/nested/lib/bar' )