#NEWLINE# def _check_issuperset( self , test , expect ) : #NEWLINE# #INDENT# '\n        Harness to test if the FrameSet.issuperset 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# if ( ( not test ) and ( not expect ) ) : #NEWLINE# #INDENT# self . assertFalse ( f . issuperset ( FrameSet ( '1' ) ) ) #NEWLINE# self . assertFalse ( f . issuperset ( FrameSet ( '-1' ) ) ) #NEWLINE# self . assertTrue ( f . issuperset ( expect ) ) #NEWLINE# return #NEWLINE# #UNINDENT# for v in [ [ expect [ 0 ] ] , expect , ( expect + [ ( max ( expect ) + 1 ) ] ) , [ ( ( i + max ( expect ) ) + 1 ) for i in expect ] ] : #NEWLINE# #INDENT# t = FrameSet . from_iterable ( v ) #NEWLINE# r = f . issuperset ( t ) #NEWLINE# e = set ( expect ) . issuperset ( v ) #NEWLINE# m = 'FrameSet("{0}").issuperset(FrameSet("{1}")) != {2}' #NEWLINE# self . assertEquals ( r , e , m . format ( test , f , e ) ) #NEWLINE# m = 'FrameSet("{0}").issuperset(FrameSet("{1}")) returns {2}: got {3}' #NEWLINE# self . assertIsInstance ( r , bool , m . format ( test , t , bool , type ( r ) ) )