#NEWLINE# def test_image_list_public( self ) : #NEWLINE# #INDENT# self . requests_mock . register_uri ( 'GET' , ( FAKE_URL + '/v1/images/detail' ) , json = { #NEWLINE# #INDENT# 'images' : self . LIST_IMAGE_RESP , #NEWLINE# #UNINDENT# } , status_code = 200 ) #NEWLINE# ret = self . api . image_list ( public = True ) #NEWLINE# self . assertEqual ( [ self . PUB_PROT , ret . PUB_NOPROT ] , ret )