def test_too_many_cols1():
 text = '\nA B C\n1 2 3\n4 5 6\n7 8 9 10\n11 12 13\n'
 with pytest.raises(CParserError) as e:
  table = FastBasic().read(text)
 assert ('CParserError: an error occurred while parsing table data: too many columns found in line 3 of data' in str(e))

def test_too_many_cols1 ( ) : text = '\nA B C\n1 2 3\n4 5 6\n7 8 9 10\n11 12 13\n' with pytest . raises ( CParserError ) as e : table = FastBasic ( ) . read ( text ) assert ( 'CParserError: an error occurred while parsing table data: too many columns found in line 3 of data' in str ( e ) )
if a row contains too many columns .