#NEWLINE# def test_invalid_locale_valid_project( self ) : #NEWLINE# #INDENT# "\n        If the project is valid but the locale isn't, redirect home.\n        " #NEWLINE# project = ProjectFactory . create ( slug = 'valid-project' ) #NEWLINE# ResourceFactory . create ( project = project ) #NEWLINE# response = self . client . get ( '/invalid-locale/valid-project/path/' ) #NEWLINE# assert_equal ( response . status_code , 404 )