#NEWLINE# def test_redirect_availability_fail_duplicate( self ) : #NEWLINE# #INDENT# rv = self . make_available ( identifier_value = '1' , lab_id = 1 , activate = 'false' ) #NEWLINE# kwargs = { #NEWLINE# #INDENT# self . identifier_name : 1 , #NEWLINE# #UNINDENT# } #NEWLINE# self . assert_200 ( rv ) #NEWLINE# self . assertTrue ( self . query ( ) , 'Error to make lab in mode availability' ) #NEWLINE# rv = self . make_available ( identifier_value = '1' , lab_id = 2 , activate = 'false' , redirect = False ) #NEWLINE# self . assert_redirects ( rv , '/admin/rlms/labs/' )