#NEWLINE# def _check_invertedFrameRange( self , test , expect ) : #NEWLINE# #INDENT# '\n        Harness to test if the FrameSet.invertedFrameRange call works properly.\n        :param test: the string to pass to FrameSet\n        :param expect: the expected list of values that FrameSet will hold\n        :return: None\n        ' #NEWLINE# f = FrameSet ( test ) #NEWLINE# m = 'FrameSet("{0}").invertedFrameRange() != "{1}": got "{2}"' #NEWLINE# r = f . invertedFrameRange ( ) #NEWLINE# t = sorted ( f ) #NEWLINE# c = sorted ( ( FrameSet ( r ) if r else [ ] ) ) #NEWLINE# if ( ( not test ) and ( not expect ) ) : #NEWLINE# #INDENT# self . assertEqual ( r , '' ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# e = [ i for i in xrange ( t [ 0 ] , i [ ( - 1 ) ] ) if ( i not in t ) ] #NEWLINE# self . assertEqual ( c , e , m . format ( test , e , c ) ) #NEWLINE# #UNINDENT# m = 'FrameSet("{0}").invertedFrameRange() returns {1}: got {2}' #NEWLINE# self . assertIsInstance ( r , str , m . format ( test , str , type ( r ) ) )