#NEWLINE# def test_simple_and_css_extract( self ) : #NEWLINE# #INDENT# self . compile_bundles ( 'webpack.config.simple.js' ) #NEWLINE# assets = get_loader ( DEFAULT_CONFIG ) . get_assets ( ) #NEWLINE# self . assertEqual ( assets [ 'status' ] , 'done' ) #NEWLINE# self . assertIn ( 'chunks' , assets ) #NEWLINE# chunks = main [ 'chunks' ] #NEWLINE# self . assertIn ( 'main' , chunks ) #NEWLINE# self . assertEqual ( len ( chunks ) , 1 ) #NEWLINE# main = chunks [ 'main' ] #NEWLINE# self . assertEqual ( main [ 0 ] [ 'path' ] , os . path . join ( settings . BASE_DIR , 'assets/bundles/main.js' ) ) #NEWLINE# self . assertEqual ( main [ 1 ] [ 'path' ] , os . path . join ( settings . BASE_DIR , 'assets/bundles/styles.css' ) )