#NEWLINE# def test_waterbutler_server_error_returns_503( self ) : #NEWLINE# #INDENT# self . _prepare_mock_wb_response ( status_code = 500 ) #NEWLINE# url = '/{}nodes/{}/files/github/' . format ( API_BASE , self . project . _id ) #NEWLINE# res = self . app . get ( url , auth = self . user . auth , expect_errors = True , headers = { #NEWLINE# #INDENT# 'COOKIE' : 'foo=bar;' , #NEWLINE# #UNINDENT# } ) #NEWLINE# assert_equal ( res . status_code , 503 )