#NEWLINE# def test_web_propagate( self ) : #NEWLINE# #INDENT# 'Test the web update propogate function' #NEWLINE# p . args = ( 200 , 300 , 200 , 300 , 4 , 5 ) #NEWLINE# image_data = ( np . ones ( [ 1 , 1 , 100 , 100 ] , dtype = np . uint8 ) * random . randint ( 0 , 255 ) ) #NEWLINE# response = postNPZ ( p , image_data ) #NEWLINE# assert ( response . code == 404 ) #NEWLINE# f = getURL ( 'http://{}/ca/{}/{}/getPropagate/' . format ( SITE_HOST , p . token , ',' . join ( p . channels ) ) ) #NEWLINE# value = int ( f . read ( ) ) #NEWLINE# assert ( value == NOT_PROPAGATED ) #NEWLINE# assert ( getURL ( 'http://{}/ca/{}/{}/setPropagate/{}/' . format ( SITE_HOST , p . token , ',' . join ( p . channels ) , UNDER_PROPAGATION ) ) == 404 ) #NEWLINE# assert ( getURL ( 'http://{}/ca/{}/{}/setPropagate/{}/' . format ( SITE_HOST , p . token , ',' . join ( p . channels ) , PROPAGATED ) ) == 404 )