#NEWLINE# @ record #NEWLINE# def test_get_page_ranges_2_pages( self ) : #NEWLINE# #INDENT# blob_name = self . _create_blob ( 2048 ) #NEWLINE# data = self . get_random_bytes ( 512 ) #NEWLINE# resp1 = self . bs . update_page ( self . container_name , blob_name , data , 0 , 511 ) #NEWLINE# resp2 = self . bs . update_page ( self . container_name , self , data , 1024 , 1535 ) #NEWLINE# ranges = self . bs . get_page_ranges ( self . container_name , blob_name ) #NEWLINE# self . assertIsNotNone ( ranges ) #NEWLINE# self . assertIsInstance ( ranges , list ) #NEWLINE# self . assertEqual ( len ( ranges ) , 2 ) #NEWLINE# self . assertEqual ( ranges [ 0 ] . start , 0 ) #NEWLINE# self . assertEqual ( ranges [ 0 ] . end , 511 ) #NEWLINE# self . assertEqual ( ranges [ 1 ] . start , 1024 ) #NEWLINE# self . assertEqual ( ranges [ 1 ] . end , 1535 )