#NEWLINE# def test_current_ref_with_no_valids( self ) : #NEWLINE# #INDENT# resp = self . client . post ( resp . path , data = { #NEWLINE# #INDENT# 'env' : 'staging' , #NEWLINE# 'app' : self . app . name , #NEWLINE# 'user' : self . user . name , #NEWLINE# 'ref' : ':current' , #NEWLINE# #UNINDENT# } ) #NEWLINE# assert ( resp . status_code == 400 ) #NEWLINE# data = json . loads ( resp . data ) #NEWLINE# assert ( data [ 'error_name' ] == 'invalid_ref' )