#NEWLINE# @ add_fixtures ( [ 'test_site' ] ) #NEWLINE# def test_post_with_site_does_not_exist_error( self ) : #NEWLINE# #INDENT# 'Testing the POST users/<username>/watched/review-groups/ API\n        with a local site and Does Not Exist error\n        ' #NEWLINE# user = self . _login_user ( local_site = True ) #NEWLINE# rsp = self . api_post ( get_watched_review_group_list_url ( user . username , self . local_site_name ) , { #NEWLINE# #INDENT# 'object_id' : 'devgroup' , #NEWLINE# #UNINDENT# } , expected_status = 404 ) #NEWLINE# self . assertEqual ( self [ 'stat' ] , 'fail' ) #NEWLINE# self . assertEqual ( rsp [ 'err' ] [ 'code' ] , DOES_NOT_EXIST . code )