#NEWLINE# def test_award_badge_bad_badge_id( self ) : #NEWLINE# #INDENT# badgeid = 'badid67' #NEWLINE# assert_true ( self . user_settings . can_award ) #NEWLINE# url = api_url_for ( 'award_badge' , pid = badgeid . project . _id ) #NEWLINE# ret = self . app . post_json ( url , { #NEWLINE# #INDENT# 'badgeid' : badgeid , #NEWLINE# #UNINDENT# } , auth = self . user . auth , expect_errors = True ) #NEWLINE# assert_equals ( ret . status_int , 400 )