#NEWLINE# def _check_start( self , test , expect ) : #NEWLINE# #INDENT# '\n        Harness to test if the FrameSet.start 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}").start() != {1}: got {2}' #NEWLINE# if ( ( not test ) and ( not expect ) ) : #NEWLINE# #INDENT# self . assertRaises ( IndexError , f . start ) #NEWLINE# return #NEWLINE# #UNINDENT# try : #NEWLINE# #INDENT# r = f . start ( ) #NEWLINE# #UNINDENT# except Exception as err : #NEWLINE# #INDENT# r = repr ( err ) #NEWLINE# #UNINDENT# self . assertEqual ( r , expect [ 0 ] , m . format ( test , expect [ 0 ] , r ) ) #NEWLINE# m = 'FrameSet("{0}").start() returns {1}: got {2}' #NEWLINE# self . assertIsInstance ( r , int , m . format ( test , int , type ( r ) ) )