#NEWLINE# def test_mask_zero_start_and_end_zero( self , testdata ) : #NEWLINE# #INDENT# data = testdata #NEWLINE# mask = calliope . time_masks . mask_zero ( data , 'tech2' ) #NEWLINE# assert ( mask . tolist ( ) == [ 1 , 1 , 1 , 0 , 0 , 0 , 0 , 0 , 1 , 1 ] ) #NEWLINE# res = calliope . time_tools . masks_to_resolution_series ( [ mask ] ) #NEWLINE# assert ( res . tolist ( ) == [ 3 , ( - 1 ) , ( - 1 ) , 0 , 0 , 0 , 0 , 0 , 2 , ( - 1 ) ] )