@requires_application()
def test_arrow_attributes():
 with TestingCanvas() as c:
  arrow = visuals.Arrow(pos=vertices, arrow_type='stealth', arrows=arrows, arrow_size=10, color='red', connect='segments', parent=c.scene)
  def size_test():
   arrow.arrow_size = 0.0
  def type_test():
   arrow.arrow_type = 'random_non_existent'
  assert_raises(ValueError, size_test)
  assert_raises(ValueError, type_test)

@ requires_application ( ) def test_arrow_attributes ( ) : with TestingCanvas ( ) as c : arrow = visuals . Arrow ( pos = vertices , arrow_type = 'stealth' , arrows = arrows , arrow_size = 10 , color = 'red' , connect = 'segments' , parent = c . scene ) def size_test ( ) : arrow . arrow_size = 0.0 def type_test ( ) : arrow . arrow_type = 'random_non_existent' assert_raises ( ValueError , size_test ) assert_raises ( ValueError , type_test )
tests if the arrowvisual performs the required checks for the attributes .