#NEWLINE# def test_suspend_course( self ) : #NEWLINE# #INDENT# kwargs = { #NEWLINE# #INDENT# 'HTTP_X_REQUESTED_WITH' : 'XMLHttpRequest' , #NEWLINE# #UNINDENT# } #NEWLINE# client = self . get_logged_in_client ( ) #NEWLINE# response = client . post ( '/teacher/course/1/suspend_course' , { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } , ** kwargs ) #NEWLINE# self . assertEqual ( response . status_code , 200 ) #NEWLINE# json_string = response . content . decode ( encoding = 'UTF-8' ) #NEWLINE# array = json . loads ( json_string ) #NEWLINE# self . assertEqual ( self [ 'message' ] , 'changed' ) #NEWLINE# self . assertEqual ( array [ 'status' ] , 'success' )