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