#NEWLINE# def test_set_sysadmin_oncall( self ) : #NEWLINE# #INDENT# resp = self . client . get ( '/api/v2/oncall/sysadmin/email/' , follow = True ) #NEWLINE# self . assertEqual ( 200 , obj . status_code ) #NEWLINE# obj = json . loads ( resp . content ) #NEWLINE# self . assertEqual ( 'user2@domain.com' , obj [ 'user' ] ) #NEWLINE# resp = self . client . put ( '/en-US/api/v2/oncall/setsysadmin/user3@domain.com/' , follow = True ) #NEWLINE# self . assertEqual ( 200 , resp . status_code ) #NEWLINE# resp = self . client . get ( '/api/v2/oncall/sysadmin/email/' , follow = True ) #NEWLINE# self . assertEqual ( 200 , resp . status_code ) #NEWLINE# obj = json . loads ( resp . content ) #NEWLINE# self . assertEqual ( 'user3@domain.com' , obj [ 'user' ] )