def test_line_number_errors():
 s = 'hello'
 with raises(ValueError):
  api.Script(s, 2, 0)
 with raises(ValueError):
  api.Script(s, 0, 0)
 with raises(ValueError):
  api.Script(s, 1, (len(s) + 1))
 with raises(ValueError):
  api.Script(s, 1, (-1))
 api.Script(s, 1, 0)
 api.Script(s, 1, len(s))

def test_line_number_errors ( ) : s = 'hello' with raises ( ValueError ) : api . Script ( s , 2 , 0 ) with raises ( ValueError ) : api . Script ( s , 0 , 0 ) with raises ( ValueError ) : api . Script ( s , 1 , ( len ( s ) + 1 ) ) with raises ( ValueError ) : api . Script ( s , 1 , ( - 1 ) ) api . Script ( s , 1 , 0 ) api . Script ( s , 1 , len ( s ) )
script should raise a valueerror if line/column numbers are not in a valid range .