#NEWLINE# def test_get_full_source_path( ) : #NEWLINE# #INDENT# compiler = compilers . BaseCompiler ( ) #NEWLINE# root = os . path . dirname ( __file__ ) #NEWLINE# assert ( compiler . get_full_source_path ( 'scripts/test.coffee' ) == os . path . join ( compiler , 'static' , 'scripts' , 'test.coffee' ) ) #NEWLINE# with pytest . raises ( ValueError ) : #NEWLINE# #INDENT# compiler . get_full_source_path ( 'scripts/does-not-exist.coffee' ) #NEWLINE# #UNINDENT# assert ( compiler . get_full_source_path ( 'another_test.coffee' ) == os . path . normpath ( os . path . join ( root , 'staticfiles_dir' , 'another_test.coffee' ) ) ) #NEWLINE# assert ( compiler . get_full_source_path ( 'prefix/another_test.coffee' ) == os . path . normpath ( os . path . join ( root , 'staticfiles_dir_with_prefix' , 'another_test.coffee' ) ) )