#NEWLINE# def test_get_all_services_oncall( self ) : #NEWLINE# #INDENT# resp = self . client . get ( '/api/v2/oncall/services/all/' , follow = True ) #NEWLINE# self . assertEqual ( 200 , resp . status_code ) #NEWLINE# obj = json . loads ( resp . content ) #NEWLINE# self . assertEqual ( len ( obj ) , 2 ) #NEWLINE# self . assertEqual ( 'user5' , obj [ 1 ] [ 'user' ] )